Keep SSH Sessions alive in Linux

It was back in 2013 when I posted something about how to set a keep-alive for SSH sessions in putty. Well if you are in Linux and you are using the SSH client shipped with it to connect to your servers you might want to do the same too. Getting your connection lost is really annoying.

Well the cure for this is to edit ssh_config file which is placed on /etc/ssh/.

Open it and add this lines to it after Host *

that’s it, your client will send a keep alive request to the server every 60 seconds now.

Incoming search terms:

  • www gogle play

Disable SELINUX permanently

Disabling SELinux is necessary to run many of applications and services such as webservers and etc. The easiest way to disable SELinux is the famous command of “setenforce 0”. while this command disables SELinux fast but it does not provide a permanent solution.

To disable SELinux Permanently you need to make changes to “/etc/selinux/config” file.

Open it in your favorite editor, I use nano so I’ll have to open it this way:

and find the line saying “SELINUX=enforcing” to “SELINUX=disabled”.

That’s it. save the file and you are good to go.