背景,在服务器用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.

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-14
猜你喜欢
  • 2021-10-19
  • 2021-11-02
  • 2021-09-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案