The Host value can be any name you want it is simply a label for the other settings. ssh directory or the config file does not exist, create them.Īdd the following lines to the config file. Use your preferred text editor to open the ~/.ssh/config file on your local computer.
On Linux and Apple Mac OS X operating systems, the ~/.ssh/config file enables you to specify many SSH settings, including those that keep alive an SSH connection. If it stil drops, gradually decrease the keepalive interval until the connection is stable. With this configuration, PuTTY sends a packet to the server every 240 seconds (4 minutes) to keep the connection alive.
Localhost$ ssh -X you experience problems when using SSH, such as dropped or unresponsive connections, you may need to adjust some settings in your SSH client to keep SSH session alive.