LoginSignup
0
0

More than 3 years have passed since last update.

WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

Posted at

概要

AWSの踏み台サーバにアクセスしようとしたら出来なくなった。

エラー内容

$ ssh -i bastion.pem user@22.19.39.129
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is

何だこれって感じですが同じIPで同じポートに接続しようとすると
フィンガープリントのゴミが溜まって発生してしまうようです。

対応方法

ファイルを開く

$ vi ~/.ssh/known_hosts

該当IPについての記載がある行を削除して保存する

これだけで接続出来る様になりました。

これからも発生しそうだけど、忘れそうなのでメモ

参考

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