【问题标题】:Git SSH Issue on Windows Server 2012Windows Server 2012 上的 Git SSH 问题
【发布时间】:2014-09-25 12:24:55
【问题描述】:

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

sshgit@bitbucket.org 好的

sshbitbucket.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...==

【问题讨论】:

    标签: windows git ssh bitbucket


    【解决方案1】:

    似乎问题在于 Open SSH 和 PLINK.exe(由 putty 使用)之间的冲突

    这里的详细信息: Git server's host key not cached in registry - GitHub.com

    通过将 GIT_SSH 环境变量更改为 /usr/bin/ssh.exe 并现在使用 openssh 使其工作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-02-05
      • 1970-01-01
      • 2018-05-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-08-26
      • 2021-04-07
      相关资源
      最近更新 更多