ssh:无法解析主机名 git:不知道这样的主机

问题描述 投票:0回答:1

我正在尝试通过 SSH 访问 BitBucket 上的旧 git 存储库。 客户端或 BitBucket 上的 SSH 密钥均未更改,但克隆存储库失败并显示

ssh: Could not resolve hostname git: No such host is known.

命令的详细日志:

c:\Source\xandar>ssh -vvv git clone ssh://[email protected]:william_ferguson_au/lexathon-server.git
OpenSSH_for_Windows_8.6p1, LibreSSL 3.4.3
debug1: Reading configuration data C:\\Users\\William/.ssh/config
debug3: Failed to open file:C:/ProgramData/ssh/ssh_config error:2
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> 'C:\\Users\\William/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> 'C:\\Users\\William/.ssh/known_hosts2'
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug2: resolving "git" port 22
ssh: Could not resolve hostname git: No such host is known.

我尝试按照https://confluence.atlassian.com/bitbucketserverkb/git-clone-fails-when-cloning-via-ssh-879243661.html的建议创建一个新的SSH密钥并将其上传到BitBUcket,但是没有效果。

有人可以指出我正确的方向吗?

git ssh bitbucket openssh
1个回答
0
投票

该命令的简短版本,

ssh -vvv git
表示“非常详细地使用 ssh 到主机
git
,并带有参数......”

尝试一下

git clone ...

© www.soinside.com 2019 - 2024. All rights reserved.