Linux下解決 id_rsa 權限不夠
問題 ssh
- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
- @ WARNING: UNPROTECTED PRIVATE KEY FILE! @
- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
- Permissions 0644 for '/home/robin/.ssh/id_rsa' are too open.
- 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
解決方案 spa
- chmod 755 ~/.ssh/
- chmod 600 ~/.ssh/id_rsa ~/.ssh/id_rsa.pub
- chmod 644 ~/.ssh/known_hosts
歡迎關注本站公眾號,獲取更多信息