【问题标题】:Git configuration - still ask username and passwordGit 配置 - 仍然询问用户名和密码
【发布时间】:2012-03-13 18:34:25
【问题描述】:

我正在尝试设置 pu 我的 git,但我有一点问题。

我使用 Mac OS X Lion,当我去:

~/.ssh/

我可以看到 2 个文件:id_rsa 和 id_rsa.pub。我想生成新的 SSH 密钥以登录到 bitbucket.org 或 github.com。我愿意:

rm ~/.ssh/*
ssh-keygen -t rsa -C "example@gmail.com"

然后我不确定,但我写了我的邮件密码,我的 bitbucket 密码......一切,我仍然有同样的问题。 当我使用时:

git clone https://...
git pull

或类似的东西它仍然需要我的用户名和密码。当然,我将新的 id_rsa.pub 密钥粘贴到网站(bitbucket 和 github)上的 SSH 密钥。知道我做错了什么吗?

【问题讨论】:

    标签: macos git github osx-lion


    【解决方案1】:

    您正在通过 HTTPS 进行克隆,这与您的 SSH 密钥没有任何关系。尝试使用 SSH URL 进行克隆,或者您可以通过以下方式使用 HTTPS 进行无密码登录:

    【讨论】:

      【解决方案2】:

      您使用https://,ssh 密钥在那里没有什么帮助。尝试 ssh 存储库 url。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2012-06-13
        • 2022-06-14
        • 2012-02-09
        • 1970-01-01
        • 2016-03-10
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多