Windows Server 2012上的Git SSH问题

Windows Server 2012上的Git SSH问题,windows,git,ssh,bitbucket,Windows,Git,Ssh,Bitbucket,我已经在~/.ssh中设置了ssh密钥,并在另一台工作的PC上进行了测试 宋承宪git@bitbucket.org嗯 ssh到bitbucket.org失败 git克隆表单git@bitbucket.org:account/gmc.git失败 你知道在这种情况下发生了什么吗?我不能用git克隆 user@pc //server/users$/user $ ssh git@bitbucket.org Enter passphrase for key '/c/Users/user/.ssh/id_r

我已经在~/.ssh中设置了ssh密钥,并在另一台工作的PC上进行了测试

宋承宪git@bitbucket.org嗯

ssh到bitbucket.org失败

git克隆表单git@bitbucket.org:account/gmc.git失败

你知道在这种情况下发生了什么吗?我不能用git克隆

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.
了解主机文件

bitbucket.org,131.103.20.167 ssh-rsa abc...==

问题似乎是putty使用的Open SSH和PLINK.exe之间的冲突

详情如下:

通过将GIT_SSH env var更改为/usr/bin/SSH.exe并现在使用openssh,它可以正常工作

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.
bitbucket.org,131.103.20.167 ssh-rsa abc...==