vps has been using ssh management, but ssh will automatically drop the line if it is not operated for a period of time. After consulting the data, it is found that modifying the following parameters can solve the drop problem.
Add the following two lines to the /etc/ssh/sshd_config file: ClientAliveInterval 15ClientAliveCountMax 45 Restart the sshd service #/etc/init.d/sshd restart
ClientAliveInterval Settings A duration in seconds. If no data is received from the client for such a long time, sshd will send a ”alive" message to the client through the secure channel and wait for a response. The default value of 0 means no sending ”alive” messages. This option is only valid for SSH-2.
ClientAliveCountMax sshd The maximum number of 'alive" messages allowed to be sent before any client responses are received. The default is 3 . When this limit is reached, sshd will force the connection to close and close the session. It should be noted that the &alquo;alive” message is quite different from TCPKeepAlive. “alive” messages are sent over an encrypted connection, so they are not spoofed; TCPKeepAlive can be spoofed. If ClientAliveInterval is set to 15 and ClientAliveCountMax is left at the default value, the unacknowledged client will be forced to disconnect approximately 45 seconds later. This directive can only be used with the SSH-2 protocol.
Basic principle After the mysql installation is successful, the default is to not open the remote a
The YUV format has two broad categories: planar and packed. For the planar YUV format, the Y of all
Just as Hong Kong is still engaged in tug-of-war on the issue of electronic textbooks for bookseller
In Apple Mac OS and Microsoft Windows have supported multi-touch today, the Linux open source commun
Basic tutorial on FTP and TFTP service configuration under Linux
Git Common Commands Quick Reference Table
Linux Memory Management Knowledge
Linux read-write lock implementation tutorial
Block SSH password attempt tool software
Linux Security - Set up to block the blaster
Linux instance recovery file deleted
Apache prefork and worker working mode introduction
Linux one-click installation lnmp environment Raiders
Nginx SSL/TLS configuration for “A+” Qualys SSL Labs ratin
Office Tips: Quick Insertion Tips for Word Forms
What should I do if Win8.1 wireless is always offline?
Win7 method for turning off full-duplex audio
How WinXP changes the order of the CD-ROM drive letter
How to view hidden files on Windows 8 system
Win8 how to delete those folders that can not be deleted
Win8.1 latest version 6.3.6960.16661 map tour
Quickly preview file contents using the Preview Pane in Windows 8