Solution to the problem of automatic disconnection of the remote connection system using xshell: 1. Server configuration We all know that as a server, by default it is usually passively waiting for the client to connect. However, when using xshell based on the ssh protocol, automatic disconnection always occurs. Open the /etc/ssh/sshd_config file with the vi command and you can see: ClientAliveInterval is used to specify the time interval for the server to send messages to the client. The default is 0, which means not sending. ClientAliveCountMax is used to specify the number of times the server sends messages to the client. If the specified number of times is reached and the client does not respond once, the connection will be disconnected. So you can change this accordingly: ClientAliveInterval 60 //Every 60 seconds, the server sends a message to the client. The connection is maintained only after the client responds, otherwise it is disconnected. ClientAliveCountMax 3 //You can use the default value 3 Note: The leading “#” should be removed. Restart the sshd service: service sshd restart or /etc/init.d/sshd restart 2. Client configuration Keep Alive modified. The default interval of Keep Alive in my xshell is 60 seconds, that is, every 60 seconds, the client sends a packet to the server, and after receiving confirmation from the server, the connection is maintained. It can be changed to 20, which shortens the Interval. This concludes this article on how to solve the problem of automatic disconnection of xshell remote connections. For more information about automatic disconnection of xshell remote connections, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Detailed tutorial on compiling and installing MySQL 8.0.20 from source code
>>: What is the length of a function in js?
Introduction to IPSec IPSec (Internet Protocol Se...
First, the principle of esp8266 publishes message...
Scenario: The interaction methods between parent ...
1. Apache server installation and configuration y...
Table of contents Preface 1.1 Function 1.2 How to...
This article shares the specific code for JavaScr...
Table of contents Basic Types any type Arrays Tup...
Subquery in MySql database: Subquery: nesting ano...
1. Achieve the effect 2 Knowledge Points 2.1 <...
MySQL UTF-8 encoding MySQL has supported UTF-8 si...
Today, there is such a requirement. If the logged...
1. The use of or syntax in MySQL, and the points ...
Preface When using the Deepin user interface, it ...
1. Introduction People who are not used to Englis...
MongoDB Installation Choose to install using Yum ...