简体   繁体   English

使用 SSH 的 Azure DevOps git 克隆失败 - 不匹配:SSHBlackbox.10

[英]Azure DevOps git clone with SSH fails - no match: SSHBlackbox.10

I am running on Linux.我在 Linux 上运行。 I created a repository on Azure DevOps and I am trying to clone it using SSH.我在 Azure DevOps 上创建了一个存储库,并尝试使用 SSH 克隆它。 It used to work before but not anymore.它以前可以工作,但现在不行了。 I made sure the ssh key is in .ssh folder, I added the public key to Azure DevOps SSH Keys.我确保 ssh 密钥位于 .ssh 文件夹中,我将公钥添加到 Azure DevOps SSH 密钥。 I also edited the config to make sure it is using the right key.我还编辑了配置以确保它使用正确的键。 yet when I run git clone git@ssh.dev.azure.com:v3/xxx/xxx/xxx it stays not doing anything for a long time then it throws the error但是,当我运行git clone git@ssh.dev.azure.com:v3/xxx/xxx/xxx时,它长时间不做任何事情然后抛出错误

Cloning into 'xxxxxxx'...
Connection reset by 51.104.26.0 port 22
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

When I ran this command to debug ssh -v -T git@ssh.dev.azure.com it showed the below and stayed also not doing anything for a while.当我运行此命令来调试ssh -v -T git@ssh.dev.azure.com时,它显示了以下内容,并且有一段时间没有做任何事情。

What could be the problem?可能是什么问题呢? Anyone can help solving this?任何人都可以帮助解决这个问题?

OpenSSH_8.4p1, OpenSSL 1.1.1d  10 Sep 2019
debug1: Reading configuration data /home/profile/.ssh/config
debug1: /home/profile/.ssh/config line 10: Applying options for ssh.dev.azure.com
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 20: Applying options for *
debug1: Connecting to ssh.dev.azure.com [51.104.26.13] port 22.
debug1: Connection established.
debug1: identity file /home/profile/.ssh/id_rsa type 0
debug1: identity file /home/profile/.ssh/id_rsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.4
debug1: Remote protocol version 2.0, remote software version SSHBlackbox.10
debug1: no match: SSHBlackbox.10
debug1: Authenticating to ssh.dev.azure.com:22 as 'git'
debug1: SSH2_MSG_KEXINIT sent

我的问题已解决,断开我的公司 VPN。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM