ワークステーションを再起動した後の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 the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is hogehoge.
Please contact your system administrator.
Add correct host key in /home/hoge/.ssh/known_hosts to get rid of this message.
Offending key in /home/hoge/.ssh/known_hosts:1
RSA host key for fugafuga has changed and you have requested strict checking.
Host key verification failed.


ちょっとビックリしてしまいましたが、解決策。

これは、SSHプログラムのバージョンアップに伴い、サーバのsshの鍵が変わったため表示されるエラーメッセージです。ホームディレクトリにある .ssh/known_hostsに書かれている接続先のホスト(fugafuga)で始まる行をmuleなどのエディタを使って削除してください。編集後、再度ログインしようとすると以下のような警告文がでますが、これは側に鍵を保存するための確認であり、 yesと入力してください。