侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130562 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

ssh 去掉第一次认证主机

2022-07-05 星期二 / 0 评论 / 0 点赞 / 102 阅读 / 985 字

新主机建立ssh连接总是出现Theauthenticityofhost'222.185.x.x(222.185.x.x)'can'tbeestablished.RSAkeyfingerprintis8

.

新主机建立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 [email protected]

一劳永逸解决方法,修改配置文档
修改/etc/ssh/ssh_config文件的配置,以后则不会再出现此问题
最后面添加:

StrictHostKeyChecking noUserKnownHostsFile /dev/null

搞定收工。


.

广告 广告

评论区