ssh登录The authenticity of host x.x.x.x can't be established.的问题

使用ssh登陆后,一直都是The authenticity of host x.x.x.x can't be established.,然后不断点y,最后ctrl+c,在网上搜到两种解决方法。

第一种:ssh -o StrictHostKeyChecking=no ,,,,,,后面加正常的东西,以后再访问就没有了can't be established

第二种:在etc/ssh/ssh_config后面添加

StrictHostKeyChecking no

UserKnownHostsFile /dev/null

以后都不会出现了

你可能感兴趣的:(ssh登录The authenticity of host x.x.x.x can't be established.的问题)