gpt4 book ai didi

ssh - gitlab - ssh_exchange_identification : read: Connection reset by peer

转载 作者:行者123 更新时间:2023-12-03 23:33:14 26 4
gpt4 key购买 nike

我正在尝试从我的 Macbook 从 Gitlab 服务器克隆。当我克隆时,出现以下错误:

manzanita-226-109:icarus homeuser$ git clone elm:dummy/dummy.git
Cloning into 'dummy'...

ssh_exchange_identification: read: Connection reset by peer
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
当我尝试通过 ssh 进入 gitlab 服务器时,我得到以下信息:
OpenSSH_7.6p1, LibreSSL 2.6.2
debug1: Reading configuration data /Users/homeuser/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 48: Applying options for *
debug1: Connecting to elm.ndc.nasa.gov port 22.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file /Users/homeuser/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/homeuser/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/homeuser/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/homeuser/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/homeuser/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/homeuser/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/homeuser/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/homeuser/.ssh/id_ed25519-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.6
ssh_exchange_identification: read: Connection reset by peer
我可以毫无问题地使用 Google Chrome 访问 gitlab 服务器。我还尝试从不同的服务器克隆和 ssh'ing,没有任何问题。我在这个 gitlab 服务器上没有管理员权限,但我不相信那里有任何禁止/黑名单软件。
任何人都可以建议吗?

最佳答案

ssh_exchange_identification: read: Connection reset by peer

这基本上意味着 TCP 连接在被服务器接受后立即变为 "reset"。造成这种情况的常见原因有:
  • 远程 SSH 服务器软件出现故障(例如崩溃)。
  • 远程 SSH 服务器软件配置为出于某种原因断开连接。
  • 您和服务器之间的某些路由器或其他网络设备正在干扰 TCP 连接。

  • 无法从客户端调试消息中准确判断出什么问题。您需要在服务器上解决此问题。例如,远程 SSH 服务器程序可能有一个您可以查看的日志文件。

    关于ssh - gitlab - ssh_exchange_identification : read: Connection reset by peer,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49266405/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com