Prolonging terminal sessions: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 3: Line 3:
=SSH configuration=
=SSH configuration=


One simple solution is to modify the configuration of your SSH client to prolong the connection. On MacOS and Linux the client configuration is found in <tt>$HOME/.ssh/config</tt>, where you can add the lines  
One simple solution is to modify the configuration of your SSH client to prolong the connection. On MacOS and Linux the client configuration is found in <tt>$HOME/.ssh/config</tt> while in Windows it is in <tt>C:\Users\<username>\.ssh\config</tt>, where you can add the lines  
<source>
<source>
Host *
Host *
     ServerAliveInterval 240
     ServerAliveInterval 240
</source>
</source>
which will send a sign-of-life signal over the SSH connection to the cluster every four minutes (240 seconds).
which will send a sign-of-life signal over the SSH connection to the cluster every four minutes (240 seconds).


=Screen=
=Screen=
Bureaucrats, cc_docs_admin, cc_staff
2,306

edits

Navigation menu