我上傳了我的~/.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