星空网 > 软件开发 > 操作系统

ssh 使用密钥无法登入Linux系统

今天测试密钥登入linux系统时 出现如下问题:
 
root@compute01:~# ssh alicxxx@xxx.com -p 80 -i alickicxxxxxxx.key

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0777 for 'alickxxxxxxx.key' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: alickicxxxxxxxxxxx.key
Permission denied (publickey).

解决方法:
 
chmod  600  alickicxxxxxxxxxxx.key

然后再试试就可以了。要先限制其他用户无法使用这个密钥。只能是root用户才能使用这个密钥。




原标题:ssh 使用密钥无法登入Linux系统

关键词:linux

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

Christina:https://www.goluckyvip.com/tag/17048.html
christine jiang:https://www.goluckyvip.com/tag/17049.html
贸易磋商结果:https://www.goluckyvip.com/tag/1705.html
christlert:https://www.goluckyvip.com/tag/17050.html
Christopher He:https://www.goluckyvip.com/tag/17051.html
Chromebook:https://www.goluckyvip.com/tag/17052.html
跨境支付百科——巴西支付篇:https://www.kjdsnews.com/a/1836648.html
大福地快捷酒店预订 大福酒店怎么走:https://www.vstour.cn/a/365187.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流