LoginSignup
1
0

More than 5 years have passed since last update.

「REMOTE HOST IDENTIFICATION HAS CHANGED」の対応策

Posted at

最近VPSのUbuntuに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 ECDSA key sent by the remote host is
SHA256:OxAch4XQKDrevbrPNfLojXur4gf26XupgqhUPCzG+x0.
Please contact your system administrator.
Add correct host key in /Users/ABC/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/ABC/.ssh/known_hosts:66
ECDSA host key for 111.111.111.111 has changed and you have requested strict checking.
Host key verification failed.

調べてみたら、クライアントで下記の命令を実行すればいい。

ssh-keygen -R 111.111.111.111

原因とは、そのサーバに変化があって、クライアントに登録したKEYは失効した。そして新しいKEYを登録する必要がある。

1
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
1
0