我按照说明~/.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工作正常.
.ssh是rwx------,.ssh/id_rsa是-rw-------,.ssh/id_rsa.pub是-rw-r--r--