跳板机时经常出现连接被断开的情况。如果发生这种情况,请在客户端配置Keep Alive设置,具体方法参考如下:
Windows:
secureCRT:Properties -> Terminal -> Anti-dile 中设置每隔80秒发送一个字符串或者是NO-OP协议包
putty:Properties -> Connection -> Seconds between keepalives ( 0 to turn off ), 默认为0, 改为80
xshell:File -> Properties -> Connection -> Keep Alive 设置为80s
Linux:
linux下修改/etc/ssh/ssh_config
添加这一行
ServerAliveInterval 80