ssh 使用密鑰沒法登入linux系統

今天測試密鑰登入linux系統時 出現以下問題:linux

root@compute01:~# ssh -i test.pem root@10.100.0.16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for 'test.pem' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: test.pem
root@10.100.0.16's password:ssh

提示還讓輸入密碼ide

解決方法:測試

chmod  600  test.pemui

相關文章
相關標籤/搜索