Linux下解决 id_rsa 权限不够

问题 

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  
原文地址:https://www.cnblogs.com/jacker1979/p/4547472.html