100字范文,内容丰富有趣,生活中的好帮手!
100字范文 > ssh登录The authenticity of host localhost can‘t be established.错误

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

时间:2023-01-28 00:18:24

相关推荐

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

当我们设置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地址

即可解决问题

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。