从teamcity将更改推送到git时出错(ssh_askpass:exec(/ usr / lib / ssh / ssh-askpass))

问题描述 投票:1回答:1

我正在

ssh_askpass: exec(/usr/lib/ssh/ssh-askpass): No such file or directory 
Host key verification failed. 
fatal: Could not read from remote repository.  
Please make sure you have the correct access rights. 

[尝试从TeamCity构建将更改推送到GitHub时发生此错误。如何避免出现此错误消息?

bash git github teamcity
1个回答
0
投票

TeamCity support page包括

我需要将环境变量SSH_ASKPASS设置为指向“ C:\Program Files\Git\mingw64\libexec\git-core\git-askpass.exe”。这会以给定的正确路径覆盖unix路径

这将假定您的TeamCity在Windows服务器上运行。

© www.soinside.com 2019 - 2024. All rights reserved.