【发布时间】:2016-01-14 06:54:29
【问题描述】:
我在 Windows 环境中通过 git bash 运行 ssh。我一切正常,但现在(几天后)当我尝试连接到 bitbucket 时,我收到了消息:ssh-exchange_identification: read: connection reset by peer.
完整的日志如下所示:
$ ssh -Tvvv -p 443 git@altssh.bitbucket.org
OpenSSH_6.6.1, OpenSSL 1.0.1i 6 Aug 2014
debug2: ssh_connect: needpriv 0
debug1: Connecting to altssh.bitbucket.org [131.103.20.174] port 443.
debug1: Connection established.
debug3: Incorrect RSA1 identifier
debug3: Could not load "/c/Documents and Settings/xxx/.ssh/id_rsa" as a RSA1 public key
debug1: identity file /c/Documents and Settings/xxx/.ssh/id_rsa type 1
debug1: identity file /c/Documents and Settings/xxx/.ssh/id_rsa-cert type -1
debug1: identity file /c/Documents and Settings/xxx/.ssh/id_dsa type -1
debug1: identity file /c/Documents and Settings/xxx/.ssh/id_dsa-cert type -1
debug1: identity file /c/Documents and Settings/xxx/.ssh/id_ecdsa type -1
debug1: identity file /c/Documents and Settings/xxx/.ssh/id_ecdsa-cert type -1
debug1: identity file /c/Documents and Settings/xxx/.ssh/id_ed25519 type -1
debug1: identity file /c/Documents and Settings/xxx/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6.1
ssh_exchange_identification:读取:连接被对等方重置
我的问题和bibucket ssh_exchange_identification: read: Connection reset by peer一模一样除了
1) 我可以确认我的公司没有检查和阻止端口 443 上的数据包(尽管他们正在阻止端口 22,这就是我要从 443 开始的原因)
2) 我可以确认问题不在于 bitbucket 服务器 - 我团队中的其他人可以正常使用
如上所述,这之前工作得很好。我确实擦除了所有密钥并重新开始,但无济于事。
帮助!这两天我一直在努力解决这个问题......
更新 -- 添加更详细的日志
【问题讨论】:
-
1) 请使用
-vvv发布详细日志 2) 检查客户端配置文件的内容。