新主机建立ssh连接总是出现
The authenticity of host '222.185.x.x (222.185.x.x)' can't be established. RSA key fingerprint is 83:0c:88:96:a5:60:ba:6f:6b:6e:cb:16:16:c6:4c:23. Are you sure you want to continue connecting (yes/no)? |
要输入yes才能继续,指定参数StrictHostKeyChecking值为no即可解决
ssh -o StrictHostKeyChecking=no -i RSA_key_file root@222.185.x.x |
一劳永逸解决方法,修改配置文档
修改/etc/ssh/ssh_config文件的配置,以后则不会再出现此问题
最后面添加:
StrictHostKeyChecking no UserKnownHostsFile /dev/null |
搞定收工。
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。