After a while, it will exit the Openshift server

I use ssh to connect to the openshift server. From time to time, like every 15 minutes, I am kicked out (turned off). How can I prevent this?

thanks

+6
source share
3 answers

As soon as you run ssh in your equipment, run the unset TMOUT and it should remove the timeout and should help you not disconnect.

+11
source

Another option, in addition to eliminating the timeout, is to increase it, for example:

 unset TMOUT export TMOUT=2880000 
+1
source

IF YOU WANT TO MAKE A CONSTANT! The above is the answer for the sessions, and you will have to change it every time you connect. Try editing the sshd_config or ssh_config (depending on what is used to set the timeout). In my case, he was in

 /etc/ssh/sshd_config 

Below the configuration worked for me:

 ClientAliveInterval 6000 ClientAliveCountMax 3 
0
source

Source: https://habr.com/ru/post/974852/


All Articles