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  


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM