歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> ssh 使用密鑰無法登入Linux系統

ssh 使用密鑰無法登入Linux系統

日期:2017/2/28 14:55:58   编辑:Linux教程

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

root@compute01:~# ssh -i algoblu.pem [email protected]
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
[email protected]'s password:

提示還讓輸入密碼

解決方法:

chmod 600 test.pem

Copyright © Linux教程網 All Rights Reserved