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 5 years have passed since last update.

ssh接続でUNPROTECTED PRIVATE KEY FILE!できなかったときの対処

Posted at

サーバーを作り直したりしていると、ssh で繋ごうとしたときに下記の警告が出た。

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

仰々しいが、同じ接続先なのに中身が違うよーってことだと警告しているのだと理解したい。

身に覚えがあるのであれば、

ssh-keygen -R ホスト名

として消すことができる。
これが、うまくいかなくとも、手動で、~/.ssh/known_hosts でホスト名が書かれている行を削除すれば接続できるようになる。

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?