Linux system settings ssh connection interrupt time skills

  
                

The ssh connection server in the Linux system will have an automatic interrupt time. This interrupt time may be short when it is not set, which causes some users to feel very entangled when using ssh to connect to the server. So how to set up ssh connection to the server automatically disconnect time it

Solution:?

OpenSSH security reasons, if users connect to the SSH Server after a period of inactivity, SSH Server will automatically terminate SSH connection after a certain time.

The following are all useless, use tmux on vps to make ssh not disconnected

useless

sudo vim /etc/ssh/sshd_config

Join (Open Comment)

TCPKeepAlive yes

ClientAliveCountMax 360

ClientAliveCountMax Units in minutes

Restart sshd effective

sudo /etc/init.d/sshd restart

The above is the way to modify the Linux system ssh connection server to automatically interrupt the connection time. Look, I believe it will help you.

Copyright © Windows knowledge All Rights Reserved