SSH Write failed: Broken pipe

服务器端设定:

/etc/ssh/sshd_config

ClientAliveInterval 60         //每60秒向客户端发送一次信号
ClientAliveCountMax 2          //重试链接次数


客户端进行设置也能够实现

/etc/ssh/ssh_config文件里加两个参数就好了

1 TCPKeepAlive yes
2 ServerAliveInterval 300

链接时增长参数
ssh -o TCPKeepAlive=yes -o ServerAliveInterval=300 Server....服务器

相关文章
相关标签/搜索