Jenkins问题记录:Git SSH方式访问,报错:Host key verification failed. (Windows)

发布时间 2023-10-31 15:25:21作者: 泥称

问题:在本地windows机器上安装了jenkins,并且设置好Git SSH凭据,在git bash命令行窗口可以使用git pull命令,但是在jenkins 中执行git pull就会报错。

报错信息:

Host key verification failed. fatal: Could not read from remote repository.

解决:

  将:C:\Users\生成了SSH的用户名\.ssh 下的id_rsa、id_rsa.pub、known_hosts

  拷贝到

  C:\Windows\System32\config\systemprofile\.ssh

 

参考: https://blog.csdn.net/liuhengxiao/article/details/107488471

    https://www.cnblogs.com/jackson0714/p/jenkins1.html