Linux下解决 id_rsa 权限不够

时间:2015-06-02 21:27:46   收藏:0   阅读:326

问题 

Java代码  技术分享
  1. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@  
  2. @         WARNING: UNPROTECTED PRIVATE KEY FILE!          @  
  3. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@  
  4. Permissions 0644 for ‘/home/robin/.ssh/id_rsa‘ are too open.  
  5. It is recommended that your private key files are NOT accessible by others.  
  6. This private key will be ignored.  
  7. bad permissions: ignore key: /home/robin/.ssh/id_rsa  



解决方案 

Java代码  技术分享
    1. chmod 755 ~/.ssh/  
    2. chmod 600 ~/.ssh/id_rsa ~/.ssh/id_rsa.pub   
    3. chmod 644 ~/.ssh/known_hosts  

原文:http://www.cnblogs.com/jacker1979/p/4547472.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!