The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 06-04-2008
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,209
I don't know what ssh client OS X has but with openssh you can use the following directives in ssh_config:

Code:
ServerAliveInterval
TCPKeepAlive
And TCPKeepAlive can also be used on the command line with "ssh -o TCPKeepAlive"

you my have it or something similiar.

Another option is to run a command that produces some periodic output like top for example.