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地址也可以用同样的方式解决


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM