我想用SSH克隆仓库仓库。因此,我在本地机器上创建了一个ssh密钥对,并在我的git repo(即Bitbucket服务器)上添加了公钥。使用SSH克隆git仓库
然后,当我看到here,我试图克隆这样的:
git clone ssh://[email protected]:7999/my_project.git
git clone ssh://[email protected]:7999/my_project.git
这些选项没有工作,但是:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
进步的唯一一点我已经被尝试这种:
git clone [email protected]:7999/my_project.git
这需要我的密码3次,然后失败。我怀疑这不使用SSH,但是, 因为我认为SSH不应该要求输入密码。
Password:
Password:
Password:
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,keyboard-interactive).
fatal: Could not read from remote repository.
那么我该如何使用SSH克隆git仓库呢?
编辑
我在Windows和我使用Git猛砸。
ssh-add -l
返回
The agent has no identities.
Bitbucket *私人*服务器或云托管服务器? –
什么操作系统 - Windows? Linux呢? OSX? – PatrickSteele
@patricksteele Windows。我更新了这个问题。 – octavian