May 27, 2013 Adem Bilican No comments

Keep SSH connection alive in OSX

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:

cd ~/.ssh

Check if you have a file named “config”. If not, run:

touch config 

to create the config file. Then, add the following line in the “config” file

ServerAliveInterval 60

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

Leave a Reply

Your email address will not be published. Required fields are marked *