Prolonging terminal sessions: Difference between revisions

Jump to navigation Jump to search
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> while in Windows it is in <tt>C:\Users\<username>\.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 located in <tt>C:\Users\<username>\.ssh\config</tt>. Note that the file may not exist initially, so you will need to create it; you should 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).
This addition will ensure the transmission of a sign-of-life signal over the SSH connection to the cluster every four minutes (240 seconds), which should help to keep your SSH connection alive even if it is idle for several hours.


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

edits

Navigation menu