0
0

More than 3 years have passed since last update.

sshで"WARNING: UNPROTECTED PRIVATE KEY FILE!"が出たときの対処

Posted at

対処法

自分が遭遇した場面では

$ ssh xxx

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

このような感じでした。どうやら調べてみると秘密鍵の権限が現状だと外部からの読み書き全てを許可してしまっているよう。なので...

$ cd .ssh
$ chmod 600 秘密鍵

をすると対処することができました。

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