@kyanny's blog

My thoughts, my life. Views/opinions are my own.

ssh WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! を解決する

$ ssh-keygen -R hostname

# 例
$ ssh-keygen -R 203.0.113.200

エディタで ~/.ssh/known_hosts から該当行を消すのでも良いが、コマンドを使う方がスマート。

-R hostname
Removes all keys belonging to hostname from a known_hosts file. This option is useful to delete hashed hosts (see the -H option above).

203.0.113.200Reserved IP addresses から適当に選んだ。