WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

エラーメッセージ

[***@localhost ~]$ ssh user@***.**.***.**
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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
************************************.
Please contact your system administrator.
Add correct host key in /home/***/.ssh/known_hosts to get rid of this message.
Offending RSA key in /home/***/.ssh/known_hosts:2
RSA host key for ***.**.***.** has changed and you have requested strict checking.
Host key verification failed.
[***@localhost ~]$

意味

ssh先のパスワードが前回接続したときから変わってる。

解決法

ホームディレクトリで
ls -a
すると.sshというディレクトリが現れるはずだから
cd .ssh
その中にあるknown_hostsを編集して、接続しようとしたアドレスで始まる一行を削除、保存。
もう一回接続してみる。

コメント

このブログの人気の投稿

TypeError: ufunc 'bitwise_xor' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''

overleafで画像が表示されない!

エラー: ""C:\U" で始まる文字列の中で 8 進文字なしに '\U' が使われています