LoginSignup
7
5

More than 5 years have passed since last update.

日頃sshで入っていたサーバーにログインできなくなった時

Posted at

WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

ssh user@xx.xx.xx.xx でいつも通りsshログインしようとしたらエラーが発生

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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 RSA key sent by the remote host is
XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX.
Please contact your system administrator.
Add correct host key in [known_hostsの場所][host keyを登録してるソース] to get rid of this message.
Offending RSA key in [known_hostsの場所][host keyを登録してるソース]:[行数]
RSA host key for [sshで入るIP] has changed and you have requested strict checking.
Host key verification failed.

host key を登録してるソースの修正

1.エラーに出ていた[known_hostsの場所][host keyを登録してるソース]を修正する。

vi [known_hostsの場所][host keyを登録してるソース]

2.エラーに表示されている行の箇所に該当IPのkeyに関する記述があるので、削除か、コメントアウトをする。
3.保存

sshログインができるようになります👍

7
5
2

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