相关疑难解决方法(0)

Git on Bitbucket:即使在上传我的公共SSH密钥后,也总是要求输入密码

我按照说明~/.ssh/id_rsa.pub将我上传到Bitbucket的SSH密钥,但Git仍然要求我在每次操作时都输入密码(例如).我错过了什么?git pull

它是一个私有存储库(另一个人的私有存储库的分支),我克隆它像这样:

git clone git@bitbucket.org:Nicolas_Raoul/therepo.git
Run Code Online (Sandbox Code Playgroud)

这是我当地的.git/config:

[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
[remote "origin"]
        fetch = +refs/heads/*:refs/remotes/origin/*
        url = https://Nicolas_Raoul@bitbucket.org/Nicolas_Raoul/therepo.git
[branch "master"]
        remote = origin
        merge = refs/heads/master
Run Code Online (Sandbox Code Playgroud)

在具有相同公钥的相同环境中,Gitub上的Git工作正常.
.sshrwx------,.ssh/id_rsa-rw-------,.ssh/id_rsa.pub-rw-r--r--

git ssh bitbucket

171
推荐指数
8
解决办法
10万
查看次数

标签 统计

bitbucket ×1

git ×1

ssh ×1