码迷,mamicode.com
首页 > 其他好文 > 详细

【Git】The authenticity of host '192.168.1.1 (192.168.1.1)' can't be established.

时间:2019-11-22 20:58:16      阅读:271      评论:0      收藏:0      [点我收藏+]

标签:nec   文件夹   git   git pull   ssh   ima   密钥   服务   img   

背景,在服务器用www用户身份 执行拉取命令报错

sudo -u www git pull

 

原因分析:

在新生成密钥之后,在.ssh文件夹中少了known_hosts文件

解决办法:

Are you sure you want to continue connecting (yes/no)? yes

这里填yes就好了。
此时选择yes回车之后便生成了缺少了的known_hosts文件

再次执行上边的命令。就ok了

完整过程如下图

技术图片

 

【Git】The authenticity of host '192.168.1.1 (192.168.1.1)' can't be established.

标签:nec   文件夹   git   git pull   ssh   ima   密钥   服务   img   

原文地址:https://www.cnblogs.com/richerdyoung/p/11913978.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!