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接続でWARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!と表示されて繋がらない問題への対処

Posted at

ssh接続で

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

表示されてしまった時の対処。
IPを静的に変更しようとゴチャゴチャとやっていたら発症。

わかったこと

これは以前そのIPにアクセスしようとしたときにローカルに保存した鍵ファイルの中身と今接続しようとしているサーバが異なる場合に違いますよ!と教えてくれているらしい。

解決策

$ ssh-keygen -R host_name

を実行するとローカルに保存されている鍵ファイルを更新できる。

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?