簡體   English   中英

Windows Server 2012上的Git SSH問題

[英]Git SSH Issue on Windows Server 2012

我已經在~/.ssh設置了我的ssh密鑰,並在另一台PC上對其進行了測試(正常工作)

sshgit@bitbucket.org OK

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

似乎問題出在Open SSH和PLINK.exe(由膩子使用)之間發生沖突

這里的詳細信息: Git服務器的主機密鑰未緩存在注冊表中-GitHub.com

通過將GIT_SSH env var更改為/usr/bin/ssh.exe並現在使用openssh使其工作。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM