解決id_rsa權限不夠的問題

錯誤描述:

 It is recommended that your private key files are NOT accessible by others.  

This private key will be ignored.  

bad permissions: ignore key: /home/robin/.ssh/id_rsa 


解決方案:

  1. chmod 755 ~/.ssh/  

  2. chmod 600 ~/.ssh/id_rsa ~/.ssh/id_rsa.pub   

  3. chmod 644 ~/.ssh/known_hosts


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章