在本地windows机器上安装了jenkins,在git bash命令行窗口可以使用git pull命令,但是在jenkins 中执行git pull就会报错。
C:\01_Project\doc\>git pull
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
将文件夹C:\Users\xxx.ssh 下的id_rsa、id_rsa.pub、known_hosts 拷贝到C:\Windows\System32\config\systemprofile\.ssh 文件夹下