0
0

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.

macでssh接続する際、権限エラーだった話

0
Posted at

今回はssh接続出来なかった時の対処法について書いていきます。

発生したエラー

下記のようなエラーが発生しました。
エラー内容としては、秘密鍵は他のユーザーからアクセス出来るような権限では使えないよ!と言ってるようです。

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for 'hogehoge.pem' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.

対処法

今回ssh接続で使用しようとしていた秘密鍵の権限が644だった為、600に修正しました。

# chmod 600 hogehoge.pem

これで接続できるようになります

0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?