0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

AWS EC2インスタンスにSSH接続する時のパーミッションエラー回避方法

Posted at

EC2にSSH接続しようとするとこんなエラーが,,,

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

よくエラーを見ると、

Permissions 0755 for '/Users/user/Desktop/xxxxxxxxxxxx.pem' are too open.

パーミッションが開きすぎ!とのこと。

ググるとパーミッションを600に変更すればOKだと。

chmod 600 /Desktop/xxxxxxxxxxxx.pem

変更したのちに、


       __|  __|_  )
       _|  (     /   Amazon Linux 2 AMI
      ___|\___|___|

https://aws.amazon.com/amazon-linux-2/

こうなれば成功です。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?