【问题标题】:Git asks for username and password even though SSH keys is setup即使设置了 SSH 密钥,Git 也会询问用户名和密码
【发布时间】:2015-11-09 19:21:32
【问题描述】:

在我的 Mac 上,Git 每次登录时都会询问我用户名和密码,尽管我按照https://help.github.com/enterprise/2.3/user/articles/generating-ssh-keys/ 的分步说明进行操作

【问题讨论】:

标签: git github


【解决方案1】:

我可以按照https://help.github.com/articles/caching-your-github-password-in-git/的步骤解决这个问题

使用以下命令,因为我已经安装了它:

git config --global credential.helper osxkeychain

现在它不再要求登录凭据了。

【讨论】:

  • 不知道为什么这被选为正确答案。它没有回答问题,即如何使用 SSH 密钥登录,而不是用户名/密码。
猜你喜欢
  • 1970-01-01
  • 2012-04-19
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-03-13
  • 2014-07-21
  • 1970-01-01
相关资源
最近更新 更多