ssh自动断开解决方法

在~/.ssh/config文件中加入

 Host *  # "*" 表示所有地址
    ServerAliveInterval 10 #10秒无操作请求服务器响应
    ServerAliveCountMax 3 # 3次无响应则断开连接

猜你喜欢

转载自www.cnblogs.com/pbblogs/p/11976695.html