当前位置:网站首页>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
边栏推荐
- Natural language processing (NLP) - third party Library (Toolkit):allenlp [library for building various NLP models; based on pytorch]
- Cglib dynamic agent -- example / principle
- Xunrui CMS plug-in automatically collects fake original free plug-ins
- Convert binary search tree into cumulative tree (reverse middle order traversal)
- Spark DF增加一列
- cf:H. Maximal AND【位运算练习 + k次操作 + 最大And】
- Getting started with devkit
- [groovy] JSON string deserialization (use jsonslurper to deserialize JSON strings | construct related classes according to the map set)
- [day 30] given an integer n, find the sum of its factors
- 朝招金安全吗 会不会亏损本金
猜你喜欢

SAP Spartacus home 页面读取 product 数据的请求的 population 逻辑

Introduction of motor

The inconsistency between the versions of dynamic library and static library will lead to bugs
![[groovy] compile time meta programming (compile time method interception | method interception in myasttransformation visit method)](/img/e4/a41fe26efe389351780b322917d721.jpg)
[groovy] compile time meta programming (compile time method interception | method interception in myasttransformation visit method)

KDD 2022 | 脑电AI助力癫痫疾病诊断

Folding and sinking sand -- weekly record of ETF

Study diary: February 13, 2022
![[groovy] compile time meta programming (AST syntax tree conversion with annotations | define annotations and use groovyasttransformationclass to indicate ast conversion interface | ast conversion inte](/img/61/73becfc3b46669d31b0cf334aa54f2.jpg)
[groovy] compile time meta programming (AST syntax tree conversion with annotations | define annotations and use groovyasttransformationclass to indicate ast conversion interface | ast conversion inte

Spark AQE

After 95, the CV engineer posted the payroll and made up this. It's really fragrant
随机推荐
朝招金安全吗 会不会亏损本金
Recursive method converts ordered array into binary search tree
The value of applet containers
Common API classes and exception systems
Folding and sinking sand -- weekly record of ETF
curlpost-php
Dynamic programming -- linear DP
Idea remotely submits spark tasks to the yarn cluster
《强化学习周刊》第52期:Depth-CUPRL、DistSPECTRL & Double Deep Q-Network
激动人心,2022开放原子全球开源峰会报名火热开启
Curlpost PHP
VSphere implements virtual machine migration
如何制作自己的機器人
Arduino六足机器人
Intensive learning weekly, issue 52: depth cuprl, distspectrl & double deep q-network
[day 30] given an integer n, find the sum of its factors
Overview of Zhuhai purification laboratory construction details
The detailed page returns to the list and retains the original position of the scroll bar
Cf:h. maximum and [bit operation practice + K operations + maximum and]
cf:D. Insert a Progression【关于数组中的插入 + 绝对值的性质 + 贪心一头一尾最值】