我对来自 TFS 的 git clone 有疑问。客户端是 Ubuntu 14.04, TFS 证书可用,因为 https 可以正常工作。在 Git 和全局环境中未设置代理。
工作场景:
A. git clone https://url.to.my.tfs/
B. git clone https://user@url.to.my.tfs/
一个。请求用户名和密码,输入它们,一切顺利。
B. Git 不要求密码。克隆进展顺利。所以通信linux(git)-kerberos(TFS)已经OK了。
修改 A.) 当 git 请求用户名和密码时按下 Enter
我得到:
致命:https://url.to.my.tfs 身份验证失败
那么,问题出在哪里呢?如何跳过密码输入?
最佳答案
fatal: Authentication failed for...
正是因为您没有在请求时键入 user/pass。
和 git clone https://user@url.to.my.tfs/
并且没有来自 Git 的密码请求是因为 Git credential.helper
使用了缓存在 HTTPS 协议(protocol)上。
https://git-scm.com/book/gr/v2/Git-Tools-Credential-Storage
这个已回答的问题与 Github 上的 HTTPS 相关,但它也适用于您的场景。 Is there a way to skip password typing when using https:// on GitHub? 在那里您可以找到最适合您的选项。
关于linux - 如何针对 Kerberos 跳过 Git 的密码输入?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44026024/