ssh 去掉第一次认证主机
新主机建立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 |
搞定收工。