cygwin在Windows8.1中设置ssh无密码登录
时间:2022-06-21 07:04:32
为了在Windows 8.1上直接使用Linux环境和hadoop开发,装了cygwin同时设置ssh无密码登录,但问题是密钥文件的权限太松,下面与大家分享个不错的方法可以解决此问题cygwin在Windows8.1中设置ssh的问题解决
为了在Windows 8.1上直接使用Linux环境和hadoop开发,装了cygwin,同时设置ssh无密码登录。
但正常ssh-keygen后复制到authorised_keys后登录出现提示:
Permissions 0660 for '/home/***/.ssh/id_rsa' are too open. It is required that your private key files are NOT accessible by others.
意思是密钥文件的权限太松了,于是想收窄权限,但无论怎样chmod都收不回group和other的rw权限。
一番查找后才发现原来是一个N年前我工作中在AIX上也遇到过的问题,就是文件的group没有,或者在cygwin中分组显示为None的原因。解决方法就是先赋予分组,简单粗暴chgrp Users给个普通用户分组,再改权限就没问题了。
标签:cygwin,win8.1,设置ssh
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
十分钟后如何注销用户?Power Manager是这样做的!
2022-07-14 03:57:44
![](https://img.aspxhome.com/file/2023/4/a209944_0s.png)
excel表格怎么画趋势线并显示趋势线公式?
2023-12-13 02:05:50
电脑版wps数据透明表如何自定义错误值
2022-02-16 01:54:39
![](https://img.aspxhome.com/file/2023/3/a184063_0s.png)
Win10系统怎么让文件显示后缀名?Win10系统文件显示后缀名的方法
2023-03-31 18:28:52
![](https://img.aspxhome.com/file/2023/2/52792_0s.png)
Excel人民币大写函数公式的三种常见公式写法
2023-10-22 23:44:22
Win10系统玩游戏出现蓝屏提示“win32kfull.sys”错误怎么解决?
2023-11-18 19:44:25
![](https://img.aspxhome.com/file/2023/5/49855_0s.png)
Win7系统还原怎么用?系统还原的方法和步骤
2022-10-30 22:07:47
![](https://img.aspxhome.com/file/2023/27/a231623_0s.jpg)
Win10无法安装NetFramework 3.5怎么办?
2022-06-24 14:01:09
![](https://img.aspxhome.com/file/2023/4/51724_0s.jpg)
word制作唯美的封面图片
2022-09-10 18:21:38
![](https://img.aspxhome.com/file/2023/6/23746_0s.png)
0x80131500打不开微软商店怎么办?0x80131500打不开微软商店解决方法
2022-06-12 10:37:16
![](https://img.aspxhome.com/file/2023/28/a239334_0s.jpg)
Win7清理磁盘节省C盘空间的技巧
2022-03-25 00:49:59
![](https://img.aspxhome.com/file/2023/27/a232740_0s.jpg)
Excel 2016表格怎么绘制树形图分析销售数据?
2022-10-15 13:12:09
![](https://img.aspxhome.com/file/2023/9/42229_0s.jpg)
Windows7与Windows XP哪个更好?
2023-05-22 20:32:30
![](https://img.aspxhome.com/file/2023/27/a234351_0s.jpg)
苹果Mac怎么连接投影仪?Mac外接显示器设置教程
2022-11-28 13:11:48
![](https://img.aspxhome.com/file/2023/9/a214989_0s.png)
excel如何调换行列位置?excel怎么把两列数据互换?
2023-09-23 23:17:42
![](https://img.aspxhome.com/file/2023/5/39805_0s.jpg)
wps表格怎么设置表格首行不滚动
2023-06-06 00:09:52
![](https://img.aspxhome.com/file/2023/0/53450_0s.jpg)
电脑版WPS演示文稿怎么取消对象动作
2022-09-18 06:45:27
![](https://img.aspxhome.com/file/2023/3/a182943_0s.png)
Word如何制作虚线框
2023-06-21 17:54:36
![](https://img.aspxhome.com/file/2023/5/31795_0s.png)
xp无法进入桌面如何在安全模式下卸载Windows XP
2022-05-16 00:36:01
![](https://img.aspxhome.com/file/2023/29/a255793_0s.jpg)
在Excel里面如何进行欧元转换
2022-05-30 03:08:45