Problem Reproduction Alibaba Cloud Server, using Finalshell remote connection, no task exceptions occurred during the operation. As long as there is no operation during the remote connection, the server will be disconnected after a while. If you cannot enter commands in the input box, you need to close the current window and reconnect. Problem Analysis Generally, for this kind of problem, we first check whether there is a problem with finalshell itself. We can open xshell and remotely connect to Alibaba Cloud, and find that xshell is still disconnected. Then we have ruled out the possibility of software problems. Next, we need to check the ssh service to see if there are some restrictions in the sshd configuration file. Problem Solving 1. Open the sshd configuration file
Modify the following two lines: 2. Modify the following parameters ClientAliveInterval 30 #The client sends a heartbeat data to the service every 30 seconds ClientAliveCountMax 1800 # The server will automatically disconnect the client if there is no response for a certain number of seconds 3. Restart the service: Replenish After solving this problem, I remembered another interesting parameter In the company, we often encounter a situation where you use ssh to connect remotely to an IP and are ready to enter your username and password. Before you enter them, the connection remains connected. Or you have entered your username and password but have not yet pressed Enter. At this time, your work is interrupted and someone comes to chat with you, so the connection will be waiting. This parameter means how long to wait before the connection is automatically closed. Summarize This article mainly explains that when you connect to the server remotely through ssh, if there is a situation where the connection is disconnected after a short period of time without any operation, you can adjust the parameters according to this article to extend the time. This is the end of this article about how to solve the problem of Alibaba Cloud SSH remote connection being disconnected after a short time. For more relevant Alibaba Cloud SSH remote connection content, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Mysql index types and basic usage examples
>>: Detailed explanation of the loop form item example in Vue
Table of contents Overview Function signature Opt...
Table of contents need Workaround 1. Set tooltip ...
Serialization implementation InnoDB implements se...
Table of contents Preface NULL in MySQL 2 NULL oc...
Table of contents render.js part create-context.j...
1. Installation package preparation VMware-player...
Table of contents 1. What I am going to talk abou...
react.js framework Redux https://github.com/react...
Table of contents 1 Difference 1.1 Space Occupanc...
Table of contents Preface 1. JDBC timeout setting...
This article introduces the characteristics of CS...
Create a container [root@server1 ~]# docker run -...
I recently installed Ubuntu 20.04 and found that ...
mysql 5.7.21 winx64 installation and configuratio...
Table of contents Demand background Thought Analy...