首页 > 其他 > 详细

解决 id_rsa 权限不够

时间:2018-04-09 00:05:26      阅读:381      评论:0      收藏:0      [点我收藏+]
问题
root@pts/1 # ssh 192.168.0.2
The authenticity of host ‘192.168.0.2 (192.168.0.2)‘ can‘t be established.
RSA key fingerprint is bd:02:00:5c:e7:b5:55:6e:c1:a0:d1:fb:a9:b6:0e:e1.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added ‘192.168.0.2‘ (RSA) to the list of known hosts.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for ‘/root/.ssh/id_rsa‘ 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: /root/.ssh/id_rsa
root@192.168.0.2‘s password: 

解决方案

root@pts/1 # chmod 755 .ssh 
root@pts/1 # chmod 600 id_rsa id_rsa.pub
root@pts/1 # chmod 644 known_hosts

解决 id_rsa 权限不够

原文:http://blog.51cto.com/chaichuan/2095845

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!