哈希空间

ssh client_loop: send disconnect: Broken pipe 解决办法

client_loop: send disconnect: Broken pipe

这个错误是ssh 命令之后没有活动导致连接被关闭。

可以编辑客户端机器的 ~/.ssh/config 文件新增如下内容

Host * 
	ServerAliveInterval 30
	ServerAliveCountMax 100

作用是每个30秒发送一个信号用来保持连接,尝试100次。如果不想保持长时间可以自行调整数字。

本文 最佳观看地址:https://www.hashspace.cn/ssh-broken-pipe.html 阅读 2122

打开 哈希空间 微信小程序中查看更佳