【发布时间】:2012-01-25 21:42:13
【问题描述】:
我以explained 的形式将~/.ssh/id_rsa.pub 上传到Bitbucket's SSH keys,但Git 在每次操作时仍然要求我输入密码(例如git pull)。我错过了什么吗?
它是一个私有仓库(另一个人的私有仓库的分支),我是这样克隆的:
git clone git@bitbucket.org: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://Nicolas_Raoul@bitbucket.org/Nicolas_Raoul/therepo.git
[branch "master"]
remote = origin
merge = refs/heads/master
在相同的环境下,使用相同的公钥,Github 上的 Git 可以正常工作。.ssh 是 rwx------,.ssh/id_rsa 是 -rw-------,.ssh/id_rsa.pub 是 -rw-r--r--
【问题讨论】: