您的位置:首页 > 其它

ssh 去掉第一次认证主机

2015-07-19 01:55 281 查看
新主机建立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
搞定收工。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: