
使用SSH连接远程服务器的时候 报出 client_loop send disconnect Broken pipe的错误;
因此,解决ssh连接长时间不操作断开连接的问题,解决方案如下:
sudo vim /etc/ssh/ssh_config
IPQoS=throughput
# 断开时重试连接的次数
ServerAliveCountMax 30
# 每隔5秒自动发送一个空的请求以保持连接
ServerAliveInterval 999
ClientAliveInterval 60
ClientAliveCountMax 86400
systemctl restart sshd
#或
service sshd restart
sudo vim /etc/ssh/sshd_config
ClientAliveInterval 60
ClientAliveCountMax 86400
sudo /etc/init.d/ssh restart
上一篇:岭回归、Lasso回归和弹性网络
下一篇:剑指offer试题整理1