packet_write_wait:连接到 192.168.xx 端口 22:管道断裂

packet_write_wait:连接到 192.168.xx 端口 22:管道断裂

我使用一台Mac通过ssh连接到另一台ubuntu电脑,然后ssh很快就会断开连接。

packet_write_wait: Connection to 192.168.1.7 port 22: Broken pipe

从连接到断开只需要很短的时间,只有几秒钟。比如我要输入一个命令“docker container ls”,我还没输入完就断开了。

我查看了 ubuntu 上的“用户”,刚刚用 ssh 登录的用户还在。查看“auth.log”,没有该断开连接的会话的关闭记录。

尝试了“ssh -o ServerAliveInterval = 60 user @ sshserver”和“ssh -o IPQoS = throughput user @ sshserver”,但都没有用。

Mac系统:macOS Catalina 10.15(19A602)Ubuntu系统:Ubuntu 18.04.3

Ubuntu刚刚安装好,安装了openssh-server,没有进行任何其他配置。

苹果

➜  .ssh ssh -o ServerAliveInterval=60 [email protected]
[email protected]'s password:
Welcome to Ubuntu 18.04.3 LTS (GNU/Linux 5.0.0-37-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

 * Overheard at KubeCon: "microk8s.status just blew my mind".

     https://microk8s.io/docs/commands#microk8s.status

 * Canonical Livepatch is available for installation.
   - Reduce system reboots and improve kernel security. Activate at:
     https://ubuntu.com/livepatch

0 个可升级软件包。
0 个安全更新。

Your Hardware Enablement Stack (HWE) is supported until April 2023.
Last login: Sun Jan  5 22:13:22 2020 from 192.168.1.5
➜  ~ dockepacket_write_wait: Connection to 192.168.1.7 port 22: Broken pipe

Ubuntu /var/log/auth.log

Jan  5 22:36:13 azu-pc sshd[4966]: User azu authorized keys /home/azu/.ssh/authorized_keys is not a regular file
Jan  5 22:36:16 azu-pc sshd[4966]: Accepted password for azu from 192.168.1.5 port 56439 ssh2
Jan  5 22:36:16 azu-pc sshd[4966]: pam_unix(sshd:session): session opened for user azu by (uid=0)
Jan  5 22:36:16 azu-pc systemd-logind[510]: New session 12 of user azu.

相关内容