【发布时间】:2022-06-30 06:24:48
【问题描述】:
我在 Linux 上运行。我在 Azure DevOps 上创建了一个存储库,并尝试使用 SSH 克隆它。它以前可以工作,但现在不行了。我确保 ssh 密钥位于 .ssh 文件夹中,我将公钥添加到 Azure DevOps SSH 密钥。我还编辑了配置以确保它使用正确的键。但是当我运行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.
当我运行此命令调试 ssh -v -T git@ssh.dev.azure.com 时,它显示了以下内容,并且有一段时间没有做任何事情。
可能是什么问题?任何人都可以帮助解决这个问题?
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
【问题讨论】:
-
“连接重置”意味着他们只是突然挂断了“电话”的“结束”,而没有先经过亲切的再见序列。您显示的调试输出并没有说明他们为什么这样做,而且他们只是粗鲁地挂断您的事实意味着您无法找出原因,因为只有他们可以告诉您原因,而他们不会告诉您原因他们不会告诉你为什么,更不会告诉你为什么。因此,请使用一些 other 方法来获取它们(例如,通过实际电话呼叫支持人员)。
标签: git ssh azure-devops