Przesłana ~/.ssh/id_rsa.pubdo kluczy SSH Bitbucket jest jak wyjaśniono , ale Git wciąż pyta o hasło przy każdej operacji (na przykład git pull). Przegapiłem coś?
Jest to prywatne repozytorium (rozwidlenie prywatnego repozytorium innej osoby) i sklonowałem je w następujący sposób:
git clone git@bitbucket.org:Nicolas_Raoul/therepo.git
Oto mój lokalny .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
W tym samym środowisku z tym samym kluczem publicznym Git na Github działa dobrze.
.sshjest rwx------, .ssh/id_rsajest -rw-------, .ssh/id_rsa.pubjest-rw-r--r--
.git/configzgit@bitbucket.org:Nicolas_Raoul/therepo.gita teraz to działa!