【发布时间】:2014-09-25 12:24:55
【问题描述】:
我已经在~/.ssh 中设置了我的 ssh 密钥并在另一台 PC 上对其进行了测试(工作)
ssh 到 git@bitbucket.org 好的
ssh 到 bitbucket.org 失败
git clone 形成git@bitbucket.org:account/gmc.git 失败
知道在这种情况下发生了什么并且我无法 git clone 吗?
user@pc //server/users$/user
$ ssh git@bitbucket.org
Enter passphrase for key '/c/Users/user/.ssh/id_rsa':
logged in as thedev.
You can use git or hg to connect to Bitbucket. Shell access is disabled.
Connection to bitbucket.org closed.
user@pc //server/users$/user
$ ssh bitbucket.org
Permission denied (publickey).
user@pc //server/users$/user
$ git clone git@bitbucket.org:account/gmc.git
Cloning into 'gmc'...
The server's host key is not cached in the registry. You
have no guarantee that the server is the computer you
think it is.
The server's rsa2 key fingerprint is:
ssh-rsa 2048 97:8c:1b:f2:6f:14:6b:5c:3b:ec:aa:46:46:74:7c:40
Connection abandoned.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
know_hosts 文件
bitbucket.org,131.103.20.167 ssh-rsa abc...==
【问题讨论】: