惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

G
Google Developers Blog
Google DeepMind News
Google DeepMind News
Microsoft Security Blog
Microsoft Security Blog
Martin Fowler
Martin Fowler
MyScale Blog
MyScale Blog
The GitHub Blog
The GitHub Blog
I
InfoQ
A
About on SuperTechFans
GbyAI
GbyAI
宝玉的分享
宝玉的分享
爱范儿
爱范儿
博客园 - 【当耐特】
博客园 - 司徒正美
博客园 - 聂微东
P
Proofpoint News Feed
WordPress大学
WordPress大学
云风的 BLOG
云风的 BLOG
Last Week in AI
Last Week in AI
阮一峰的网络日志
阮一峰的网络日志
B
Blog RSS Feed
Jina AI
Jina AI
aimingoo的专栏
aimingoo的专栏
J
Java Code Geeks
博客园 - 叶小钗

博客园 - 乱炖er

CSS/CSS3 Format/Optimize/Minify Tool 在线处理工具 android重复点击问题 macOS下生成pdf报错:No wkhtmltopdf executable found 错误:为 repo 'appstream' 下载元数据失败 : Cannot prepare internal mirrorlist: No URLs in mirrorlist Python爬虫'utf-8' codec can't decode byte 0xxx in position 1: invalid start byte的解决方案 fatal: unable to access 'https://github.com/xxx/': HTTP/2 stream 1 was not closed cleanly before end of the underlying stream Lombok requires enabled annotation processing: Do you want to enable annotation processors? visual studio code的markdown生成侧边栏目录 SpringBoot @Column SpringBoot2.6+单元测试 IDEA中SpringBoot热部署 Error: Another program is already listening on a port that one of our HTTP servers is configured to use. Shut this program down first before starting supervisord android studio右侧Gradle不显示Tasks PyCharm OSError: [Errno 48] Address already in use [Swift]扩展UIColor:实现十六进制颜色字符串与UIColor之间的相互转换 photoshop将png图片里的文字改成其他颜色 python json.dumps 中文编码问题 java.lang.RuntimeException: A TaskDescription's primary color should be opaque item2使用pem文件登陆
腾讯云服务器ssh登陆频繁断开链接的解决方案
乱炖er · 2022-01-22 · via 博客园 - 乱炖er

登陆腾讯云,打开/etc/ssh/sshd_config找到下面两行

vim /etc/ssh/sshd_config
#ClientAliveInterval 0
#ClientAliveCountMax 3

将其修改为

ClientAliveInterval 60 #客户端每隔多少秒向服务发送一个心跳数据
ClientAliveCountMax 3 #客户端多少秒没有相应,服务器自动断掉连接

保存后重启sshd服务

service sshd restart

 centos使用如下命令重启sshd服务

systemctl restart sshd

posted @ 2022-01-22 18:15  乱炖er  阅读(638)  评论(0)    收藏  举报