Bitbucket ssh 从套接字读取失败:对等方重置连接

Bitbucket ssh 从套接字读取失败:对等方重置连接

我正在使用 ssh 访问 bitbucket.org 上的 git 存储库。突然间我无法再连接到它。没有安装任何东西或对设置进行任何更改。

$ ssh -v [email protected]   

OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007                                    
debug1: Reading configuration data /c/home/.ssh/config    
debug1: Applying options for bitbucket.org                                   
debug1: Connecting to bitbucket.org [131.103.20.168] port 22.                
debug1: Connection established.                                              
debug1: identity file /c/home/.ssh/id_rsa type 1          
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.3     
debug1: match: OpenSSH_5.3 pat OpenSSH*                                      
debug1: Enabling compatibility mode for protocol 2.0                         
debug1: Local version string SSH-2.0-OpenSSH_4.6                             
debug1: SSH2_MSG_KEXINIT sent                                                
debug1: SSH2_MSG_KEXINIT received                                            
debug1: kex: server->client aes128-cbc hmac-md5 none                         
debug1: kex: client->server aes128-cbc hmac-md5 none                         
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent                     
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP                                  
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent                                        
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY                                  
debug1: Host 'bitbucket.org' is known and matches the RSA host key.          
debug1: Found key in /c/home/.ssh/known_hosts:1           
debug1: ssh_rsa_verify: signature correct                                    
debug1: SSH2_MSG_NEWKEYS sent                                                
debug1: expecting SSH2_MSG_NEWKEYS                                           
debug1: SSH2_MSG_NEWKEYS received                                            
debug1: SSH2_MSG_SERVICE_REQUEST sent                                        
debug1: SSH2_MSG_SERVICE_ACCEPT received                                     
Read from socket failed: Connection reset by peer

答案1

“对端重置连接”表示 TCP 连接的远端已关闭。因此远程 SSH 服务器决定断开您的连接,或者服务器崩溃了,或者类似情况。无法从 SSH 跟踪中准确判断原因。连接在执行身份验证之前断开,因此这不是简单的身份验证问题。您应该联系服务器操作员寻求帮助。

相关内容