当我们设置ssh免登录云服务器时出现以下报错:
The authenticity of host 'localhost (::1)' can't be established.RSA key fingerprint is 4d:ba:1c:b8:75:eb:6f:a2:60:56:b1:71:ee:cc:02:2c.Are you sure you want to continue connecting (yes/no)? Host key verification failed.[hadoop@Master .ssh]$ ssh localhostThe authenticity of host 'localhost (::1)' can't be established.RSA key fingerprint is 4d:ba:1c:b8:75:eb:6f:a2:60:56:b1:71:ee:cc:02:2c.Are you sure you want to continue connecting (yes/no)? Host key verification failed.
解决方案
终端输入:
ssh -o StrictHostKeyChecking=no localhost
此处的localhost也可以是其他ip地址
即可解决问题