出现下列问题:
bobo@master:~$ ssh slave1
Warning: the ECDSA host key for 'slave1' differs from the key for the IP address '192.168.1.104'
Offending key for IP in /home/bobo/.ssh/known_hosts:5
Matching host key in /home/bobo/.ssh/known_hosts:2
Are you sure you want to continue connecting (yes/no)?
原因是knows_hosts中已经有了地址,将其清空,重新对各主机设置无密码登录(拷贝操作)。
还有一种原因就是你在/etc/hosts里面如果设置了XXX.XXX.XXX.XXX MyCloud,但是你连接ssh的时候用mycloud的话,就会出现这样的错误