当前位置:网站首页>SSH login is stuck and disconnected
SSH login is stuck and disconnected
2022-07-06 00:58:00 【sunday2018】
ssh The login is stuck and disconnected
background
In use Mac Of terminal Log on to the remote server , If you don't operate for a period of time, you will get stuck and then disconnect . In this way, you have to re-enter the command and password to log in , The experience and operation are very bad .
The solution is to send an empty packet for a period of time like a long connection , This needs to be modified ssh Configuration file for .
ssh The configuration file of is in /etc/ssh Below directory .
Here are two documents :
ssh_config
sshd_config
ssh_config and sshd_config
ssh_config It's a profile for the client
sshd_config The configuration file is for the server
Modifying these two configuration files is to change yourself Mac Upper ssh The operation mechanism of the program
Solve the problem of stuck and disconnected connections
1. stay ssh_config Add the following configuration to the file , Let this machine ssh The program sends an empty packet to the server , To maintain a long connection
ServerAliveInterval 50
ServerAliveCountMax 3

2. restart ssh
sudo launchctl unload -w /System/Library/LaunchDaemons/ssh.plist
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist
边栏推荐
- 程序员搞开源,读什么书最合适?
- Intensive learning weekly, issue 52: depth cuprl, distspectrl & double deep q-network
- Natural language processing (NLP) - third party Library (Toolkit):allenlp [library for building various NLP models; based on pytorch]
- BiShe - College Student Association Management System Based on SSM
- How spark gets columns in dataframe --column, $, column, apply
- [day 30] given an integer n, find the sum of its factors
- 《强化学习周刊》第52期:Depth-CUPRL、DistSPECTRL & Double Deep Q-Network
- 面试必刷算法TOP101之回溯篇 TOP34
- [simple implementation of file IO]
- Pbootcms plug-in automatically collects fake original free plug-ins
猜你喜欢

Cf:c. the third problem

KDD 2022 | EEG AI helps diagnose epilepsy

Pbootcms plug-in automatically collects fake original free plug-ins

Introduction to robotics I. spatial transformation (1) posture, transformation

95后CV工程师晒出工资单,狠补了这个,真香...

2020.2.13

毕设-基于SSM高校学生社团管理系统

How to use the flutter framework to develop and run small programs

After Luke zettlemoyer, head of meta AI Seattle research | trillion parameters, will the large model continue to grow?

KDD 2022 | 脑电AI助力癫痫疾病诊断
随机推荐
面试必刷算法TOP101之回溯篇 TOP34
Comment faire votre propre robot
新手入门深度学习 | 3-6:优化器optimizers
Why can't mathematics give machine consciousness
MIT doctoral thesis | robust and reliable intelligent system using neural symbol learning
【文件IO的简单实现】
毕设-基于SSM高校学生社团管理系统
The population logic of the request to read product data on the sap Spartacus home page
程序员搞开源,读什么书最合适?
关于#数据库#的问题:(5)查询库存表中每本书的条码、位置和借阅的读者编号
Four commonly used techniques for anti aliasing
CTF daily question day44 rot
I'm interested in watching Tiktok live beyond concert
curlpost-php
Cloud guide DNS, knowledge popularization and classroom notes
Extension and application of timestamp
Intensive learning weekly, issue 52: depth cuprl, distspectrl & double deep q-network
Spark DF增加一列
logstash清除sincedb_path上传记录,重传日志数据
The inconsistency between the versions of dynamic library and static library will lead to bugs