当前位置:网站首页>腾讯云服务器SSH链接自动断开解决方法
腾讯云服务器SSH链接自动断开解决方法
2022-07-27 06:06:00 【good_1uck】
进入配置文件
vim /etc/ssh/sshd_config
中间有以下两个注释掉的配置
#ClientAliveInterval 0
#ClientAliveCountMax 3
去掉注释,改成
ClientAliveInterval 60
ClientAliveCountMax 3
这两行的意思分别是
1、客户端每隔多少秒向服务发送一个心跳数据
2、客户端多少秒没有相应,服务器自动断掉连接
重启sshd服务
/bin/systemctl restart sshd.service
边栏推荐
- 李沐动手学深度学习V2-transformer和代码实现
- 36 - new promise method: allsettled & any & race
- Convert Excel to csv/csv UTF-8
- ShowDoc漏洞学习——CNVD-2020-26585(任意文件上传)
- Using docker to install and deploy redis on CentOS
- 用typescript实现排序-递增
- 强网杯2021 pwn 赛题解析——babypwn
- Codeworks round 809 (Div. 2) (6/6) (Kruskal reconstruction tree)
- Drools (5): drools basic syntax (3)
- Gbase 8C technical features
猜你喜欢

35. Search Insert Position 搜索插入位置

Talk about multimodality of fire

Student status management system based on SSM

Consideration on how the covariance of Kalman filter affects the tracking effect of deepsort

Visual horizontal topic bug1:filenotfounderror: could not find module 'mvcameracontrol dll‘ (or one of it

Web configuration software for industrial control is more efficient than configuration software

How MySQL executes query statements

Digital image processing -- Chapter 3 gray scale transformation and spatial filtering

2022 0726 顾宇佳 学习笔记

Campus news release management system based on SSM
随机推荐
36 - 新的 Promise 方法:allSettled & any & race
Livox Slam (with lio+ closed loop detection optimization)
Reflection on pytorch back propagation
String类的用法
Jest single test style problem [identity obj proxy] NPM package
How to implement Devops with automation tools | including low code and Devops application practice
【QT】无法在QT创建者中打开包含文件pcap.h(C1083)
Codeforces Round #809 (Div. 2)(6/6)(Kruskal重构树)
Quartus: an error is reported when adding a.V file to someone else's project
OpenGL development with QT (I) drawing plane graphics
Basic statement of MySQL (1) - add, delete, modify and query
Generics -- learn it, and there are many benefits
Firefox browser, when accessing Tencent cloud server, failed to establish a secure connection.
Cass11.0.0.4 for autocad2010-2023 dog free usage
TS learning (VIII): classes in TS
【Latex格式】双栏双图左右并排有小标题、上下并列有小标题
Knowledge points and answers of PHP intermediate interview in 2020
Interpretation of deepsort source code (V)
MySQL optimization SQL related (continuous supplement)
Web configuration software for industrial control is more efficient than configuration software