linux - 如何针对 Kerberos 跳过 Git 的密码输入?

标签 linux git tfs kerberos

我对来自 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/

相关文章:

tfs - 找出合并基础

linux - gnuplot Linux 到 Windows

c - 如何创建多个进程

linux - git 更改未反射(reflect)在远程存储库中

visual-studio-2010 - TFS 合并如何工作?

visual-studio - 为什么它说 "Project with that name already opened in the solution"?

linux - 通过lftp从远程服务器复制文件

linux - 未传递的待处理信号

ruby - 在 HTTPS 推送上的任何源 (Bundler::GemNotFound) 中都找不到 rake-10.3.2

Git 允许使用未暂存的更改进行分支更改