首页 > 其他 > 详细

ssh远程访问-提示密钥不安全

时间:2017-04-09 13:33:36      阅读:224      评论:0      收藏:0      [点我收藏+]

1.本地密钥不安全

[root@localhost httpd]# git clone git@git.oschina.net:xxxxx/aaaa.git
Cloning into aaaa...
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

2.解决方案

chmod 600 id_rsa

ssh远程访问-提示密钥不安全

原文:http://www.cnblogs.com/huizong/p/6684451.html

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