Want a script to log into ssh server automatically with anti-idle function.

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Hi all,

I want to log into my ssh server by using a shell script and ensure not
be kicked out after a while for doing nothing on the sshserver.  Is this

I've told that I should consider to use the TCPKeepAlive and  
ServerAliveInterval options for this case.

But what's the differences between thess two arguments?  What should my
command like?  Suppose the anti-idle interval is set to 20 seconds in my
case.  Any hints will be highly appreciated, thanks in advance.

.: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.

Site Timeline