码迷,mamicode.com
首页 > 其他好文 > 详细

解决 id_rsa 权限不够

时间:2018-04-09 00:13:17      阅读:305      评论:0      收藏:0      [点我收藏+]

标签:ssh   权限   

问题
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 权限不够

标签:ssh   权限   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!