ssh登录The authenticity of host localhost can't be established.错误

用ssh登录出现如下错误

[hadoop@Master .ssh]$ ssh localhost
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 localhost
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 -o StrictHostKeyChecking=no localhost

其他的ip地址也可以用同样的方式解决

posted @ 2013-06-06 11:03  喜之廊  阅读(8576)  评论(0)    收藏  举报