从teamcity将更改推送到git时发生错误(ssh_askpass:exec(/usr/lib/ssh/ssh-askpass)) [英] error when pushing changes to git from teamcity (ssh_askpass: exec(/usr/lib/ssh/ssh-askpass))

查看:119
本文介绍了从teamcity将更改推送到git时发生错误(ssh_askpass:exec(/usr/lib/ssh/ssh-askpass))的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到

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时发生此错误.
如何避免出现此错误消息?

This error occurs when trying to push changes to GitHub from TeamCity build.
How can I avoid this error message?

推荐答案

我需要设置环境变量 SSH_ASKPASS 指向" C:\ Program Files \ Git \ mingw64 \ libexec \ git-core \ git-askpass.exe .
这样就用给定的正确路径覆盖了Unix路径

I needed to set the environment variable SSH_ASKPASS to point to "C:\Program Files\Git\mingw64\libexec\git-core\git-askpass.exe".
This somehow overrides the unix path with the given correct one

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

That would assume your TeamCity is running on a Windows server.

这篇关于从teamcity将更改推送到git时发生错误(ssh_askpass:exec(/usr/lib/ssh/ssh-askpass))的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆