2011年2月23日 星期三

[TIPs]SSH Conncetion Timeout Fix

There four choices for fixing the SSH conncetion timeout problem

1. At server side:
On the server, login as root and edit /etc/ssh/sshd_config and add the line:
ClientAliveInterval 60

2. At client side:
As root on your desktop (or client) machine, edit /etc/ssh/ssh_config and add the line:
ServerAliveInterval 60

3. Enable putty keepalive
putty -> Connection -> Seconds between keepalives
(default 0 means turn off), change it to 60 (seconds)


4. man sshd_config and use other config.

Reference:
a. http://ocaoimh.ie/how-to-fix-ssh-timeout-problems/
b. http://www.yaozer.cn/ssh-%E8%B6%85%E6%97%B6ssh-timeout-%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95/

沒有留言:

張貼留言