接続できない原因
#VPSに接続 [tu@ufuso ~]$ ssh -i /home/tu/ダウンロード/ssh-xxxxx.pem root@topi.0t0.jp @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0644 for '/home/tu/\343\203\200\343\202\246\343\203\263\343\203\255\343\203\274\343\203\211/ssh-xxxxx.pem' are too open. It is required that your private key files are NOT accessible by others. This private key will be ignored. Load key "/home/tu/\343\203\200\343\202\246\343\203\243\343\203\255\343\203\274\343\203\278/ssh-xxxxx.pem": bad permissions root@topi.0t0.jp: Permission denied (publickey,gssapi-keyex,gssapi-with-mic). |
解決策
# 秘密鍵のパーミッションを確認 [tu@ufuso ~]$ sudo ls -l /home/tu/ダウンロード ... ... -rw-r--r--. 1 tu tu 1675 3月 5 22:16 ssh-xxxxx.pem ... ... # 秘密鍵のパーミッションを修正 [tu@ufuso ~]$ sudo chmod 400 /home/tu/ダウンロード/ssh-xxxxx.pem |
# VPSに接続できればOK
以上
コメントを残す