Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem that Xshell uses ssh to connect to ubuntu

2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly describes how to solve the problem of Xshell using ssh to connect ubuntu dropped, the article is very detailed, has a certain reference value, interested friends must read it!

1. Xshell client settings

Modify Keep Alive time

2. Server-side modifications

Modify the/etc/ssh/sshd_config file, find ClientAliveInterval 0 and ClientAliveCountMax 3 and remove the comment symbol ("#"),

Change 0 to 60 for ClientAliveInterval,

ClientAliveInterval specifies the time interval for the server to request messages from the client. The default is 0.

ClientAliveInterval 60 means send once a minute, then the client responds, thus maintaining a long connection.

ClientAliveCountMax, the default value of 3 can be used.ClientAliveCountMax means that after the server sends a request, the number of times the client does not respond reaches a certain value, it will automatically disconnect.

Restart ssh service

tinyletero@ubuntu:~$ sudo /etc/init.d/ssh stop

tinyletero@ubuntu:~$ sudo /etc/init.d/ssh start

The above is "How to solve the problem of Xshell using ssh to connect ubuntu dropped" All the contents of this article, thank you for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report