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
2f:71:db:f6:fa:9a:73:56:2f:3a:28:65:85:32:62:ec.
Please contact your system administrator.
解决方法:
rm .ssh/known_hosts
即删除本用户的hosts
解释:
This is caused by the fact that SSH is by default configured to check for the remote machine's host key every time a connection is to be established.
You can fix the problem by whether disabling the key check, or have the right key in your ~/.ssh/known_hosts file.