解决办法
本地
sudo vim /etc/ssh/ssh_config
ServerAliveInterval 50
ServerAliveCountMax 3
远程
sudo vim /etc/ssh/sshd_config
ClientAliveInterval 50
ClientAliveCountMax 3
解决办法
sudo vim /etc/ssh/ssh_config
ServerAliveInterval 50
ServerAliveCountMax 3
sudo vim /etc/ssh/sshd_config
ClientAliveInterval 50
ClientAliveCountMax 3