client_loop: send disconnect: Broken pipe
时间:2021-07-13 20:27:21
收藏:0
阅读:226
client_loop: send disconnect: Broken pipe
配置~/.ssh/config
文件,增加以下内容即可:
Host *
# 断开时重试连接的次数
ServerAliveCountMax 5
# 每隔5秒自动发送一个空的请求以保持连接
ServerAliveInterval 5
添加在/etc/ssh/ssh_config
应该也是可以的。
或者:
修改/etc/ssh/ssh_config文件,在Host *条目下添加 IPQoS=throughput Host * IPQoS=throughput 重启ssh systemctl restart sshd 或 service sshd restart 报错:命令command not found 解决:sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist
原文:https://www.cnblogs.com/andydao/p/15007793.html
评论(0)