无法从我的 Mac 终端通过 SSH 进入我的服务器,并且通过 SSH 进行的 rsync 也突然中断了

无法从我的 Mac 终端通过 SSH 进入我的服务器,并且通过 SSH 进行的 rsync 也突然中断了

突然间我无法从 Mac 终端登录我的服务器。在我的 Linux 机器上,正常的 ssh 登录仍然有效,但 ssh 上的 rsync 也会卡住。

当我尝试从 Mac 连接时发生的情况如下:

ssh -v [email protected]
OpenSSH_7.8p1, LibreSSL 2.6.2
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 48: Applying options for *
debug1: Connecting to xx.xx.xx.xx [xx.xx.xx.xx] port 22.
debug1: Connection established.
debug1: identity file /Users/xx/.ssh/id_rsa type -1
debug1: identity file /Users/xx/.ssh/id_rsa-cert type -1
debug1: identity file /Users/xx/.ssh/id_dsa type -1
debug1: identity file /Users/xx/.ssh/id_dsa-cert type -1
debug1: identity file /Users/xx/.ssh/id_ecdsa type -1
debug1: identity file /Users/xx/.ssh/id_ecdsa-cert type -1
debug1: identity file /Users/xx/.ssh/id_ed25519 type -1
debug1: identity file /Users/xx/.ssh/id_ed25519-cert type -1
debug1: identity file /Users/xx/.ssh/id_xmss type -1
debug1: identity file /Users/xx/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.8
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.7p1 Debian-5+deb8u8
debug1: match: OpenSSH_6.7p1 Debian-5+deb8u8 pat OpenSSH* compat 0x04000000
debug1: Authenticating to xx.xx.xx.xx:22 as 'user'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: [email protected]
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: [email protected] MAC: <implicit> compression: none
debug1: kex: client->server cipher: [email protected] MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: 
debug1: Host 'xx.xx.xx.xx' is known and matches the ECDSA host key.
debug1: Found key in /Users/xx/.ssh/known_hosts:28
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /Users/xx/.ssh/id_rsa
debug1: Trying private key: /Users/xx/.ssh/id_dsa
debug1: Trying private key: /Users/xx/.ssh/id_ecdsa
debug1: Trying private key: /Users/xx/.ssh/id_ed25519
debug1: Trying private key: /Users/xx/.ssh/id_xmss
debug1: Next authentication method: password
[email protected]'s password: 
debug1: Authentication succeeded (password).
Authenticated to xx.xx.xx.xx ([xx.xx.xx.xx]:22).
debug1: channel 0: new [client-session]
debug1: Requesting [email protected]
debug1: Entering interactive session.
debug1: pledge: network
debug1: Sending environment.
debug1: Sending env LC_CTYPE = UTF-8
packet_write_wait: Connection to xx.xx.xx.xx port 22: Broken pipe

一切运行正常,然后突然停止工作。我没有更改服务器配置的任何内容。只是通过 rsync 进行了一些备份,然后在其中间 rsync 停止工作。它似乎挂在同一个地方:

Authenticated to xx.xx.xx.xx ([xx.xx.xx.xx]:22).
debug1: channel 0: new [client-session]
debug1: Requesting [email protected]
debug1: Entering interactive session.
debug1: pledge: network
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
debug1: Sending env LC_ALL = en_US.UTF-8
debug1: Sending command: rsync --server --sender -vltpre.iLsfxC . folder

有什么建议可以解决这个问题吗?

多谢!

相关内容