aboutyun@master:~$ ssh slave1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
4b:d3:4f:1e:6f:e6:3e:02:19:64:33:0b:2f:24:a2:6a.
Please contact your system administrator.
Add correct host key in /home/aboutyun/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/aboutyun/.ssh/known_hosts:1
remove with: ssh-keygen -f "/home/aboutyun/.ssh/known_hosts" -R slave1
ECDSA host key for slave1 has changed and you have requested strict checking.
Host key verification failed. 解决办法: 1.追加上面红字部分1,则为1d,是2则为2d,然后执行下面命令即可
sed -i '1d' ~/.ssh/known_hosts 2.备份一份known_hosts1,然后删除known_hosts