我上传了我的~/.ssh/id_rsa.pub
到Bitbucket's SSH keys作为explained,但Git仍然要求我在每次操作(例如git pull
)时都要求我输入密码。我错过了什么?Git Bitbucket:即使上传我的公用SSH密钥,也总是要求输入密码
这是一个私人仓库(另一人的私人仓库的叉),我克隆它是这样的:
git clone [email protected]:Nicolas_Raoul/therepo.git
这里是我的地方.git/config
:
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = https://[email protected]/Nicolas_Raoul/therepo.git
[branch "master"]
remote = origin
merge = refs/heads/master
在与相同的环境相同的公钥,Git上的Git工作正常。
.ssh
是rwx------
,.ssh/id_rsa
是-rw-------
,.ssh/id_rsa.pub
是-rw-r--r--
你是对的,谢谢!我最有可能用错误的URL克隆。我用'[email protected]:Nicolas_Raoul/therepo.git'替换了'.git/config'中的URL,现在它起作用了! – 2011-12-22 07:55:36
和更改远程使用git http://stackoverflow.com/questions/2432764/how-to-change-a-remote-repository-uri-using-git – 2012-09-12 03:41:39
这是bitbucket谁建议我https网址创建存储库时!怎么来的! – 2013-08-25 16:03:59