Add following lines to ~/.ssh/config

ServerAliveInterval 60
ServerAliveCountMax 100000

ServerAliveInterval option tells the ssh client to send an encrypted message to SSH server every 60 seconds since no data received from the server. SeverAliveCountMax sets how many such messages will be sent.

阅读(1174 次)

Creative Commons 授权
此文, 除非有特别申明, 的授权协议是 Creative Commons Attribution-Noncommercial 2.5 China Mainland 网站授权.