• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
黄洪波写点东西的地方
博客园    首页    新随笔    联系   管理    订阅  订阅
ssh登录 The authenticity of host 192.168.0.xxx can't be established. 的问题

scp免密码登录:Linux基础 - scp免密码登陆进行远程文件同步

执行scp一直是OK的,某天在本地生成了公钥私钥后,scp到某个IP报以下错误

The authenticity of host '192.168.233.137 (192.168.233.137)' can't be established.
ECDSA key fingerprint is SHA256:EsqTfeCJ34DnGV66REuRRPhoFwaLuee5wxFgEAZ8b9k.
Are you sure you want to continue connecting (yes/no)? 
Host key verification failed.
lost connection

参考:好记心不如烂笔头,ssh登录 The authenticity of host 192.168.0.xxx can't be established. 的问题,即可不修改/etc/ssh/ssh_config文件的配置而解决此问题

ssh  -o StrictHostKeyChecking=no  192.168.0.xxx 

输入密码

 

再次scp,正常输入密码,问题解决。


 

ssh连接The authenticity of host can't be established

修改/etc/ssh/ssh_config文件的配置,以后则不会再出现此问题

最后面添加:

StrictHostKeyChecking no

UserKnownHostsFile /dev/null

posted on 2017-01-05 23:09  红无酒伤  阅读(83120)  评论(1)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3