capistrano で WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED (Host key verification failed) を無視する
AWS で EIP とかつかってると、IP 同じでホストが変わることがまれによくあるのです。
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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 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 /home/xxx/.ssh/known_hosts to get rid of this message. Offending key in /home/xxx/.ssh/known_hosts:1 RSA host key for HOSTNAME has changed and you have requested strict checking. Host key verification failed.
設定で、
ssh_options[:paranoid] = false
とか書く。
あとまぁ known_hosts どうにかすればいいのだけど。
なんか前にも同じコト書いたっけ?