Keep SSH connection alive in OSX
If you want to keep you SSH connection alive to avoid automatic disconnections it is very easy in OSX.
Open your terminal and run the following command:
Check if you have a file named “config”. If not, run:
to create the config file. Then, add the following line in the “config” file
With this command, the client (your computer) will send a null packet to the server every 60 seconds, thus keeping the SSH connection alive.
Enjoy your ∞ connection… 😉
Source: New feed