Linux下解決 id_rsa 權限不夠

問題 ssh

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  



解決方案 spa

Java代碼   收藏代碼
    1. chmod 755 ~/.ssh/  
    2. chmod 600 ~/.ssh/id_rsa ~/.ssh/id_rsa.pub   
    3. chmod 644 ~/.ssh/known_hosts  
相關文章
相關標籤/搜索