当前位置:网站首页>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]
- Dedecms plug-in free SEO plug-in summary
- Free chat robot API
- Cglib dynamic agent -- example / principle
- [groovy] compile time metaprogramming (compile time method interception | find the method to be intercepted in the myasttransformation visit method)
- Distributed base theory
- Comment faire votre propre robot
- logstash清除sincedb_path上传记录,重传日志数据
- How spark gets columns in dataframe --column, $, column, apply
- 看抖音直播Beyond演唱会有感
猜你喜欢
图解网络:TCP三次握手背后的原理,为啥两次握手不可以?
Finding the nearest common ancestor of binary search tree by recursion
Illustrated network: the principle behind TCP three-time handshake, why can't two-time handshake?
《强化学习周刊》第52期:Depth-CUPRL、DistSPECTRL & Double Deep Q-Network
MIT博士论文 | 使用神经符号学习的鲁棒可靠智能系统
[groovy] JSON serialization (convert class objects to JSON strings | convert using jsonbuilder | convert using jsonoutput | format JSON strings for output)
ADS-NPU芯片架构设计的五大挑战
Building core knowledge points
Common API classes and exception systems
猿桌派第三季开播在即,打开出海浪潮下的开发者新视野
随机推荐
视频直播源码,实现本地存储搜索历史记录
[day 30] given an integer n, find the sum of its factors
Leetcode 44 Wildcard matching (2022.02.13)
golang mqtt/stomp/nats/amqp
Arduino hexapod robot
Intensive learning weekly, issue 52: depth cuprl, distspectrl & double deep q-network
Kotlin core programming - algebraic data types and pattern matching (3)
ADS-NPU芯片架构设计的五大挑战
282. Stone consolidation (interval DP)
Installation and use of esxi
【第30天】给定一个整数 n ,求它的因数之和
Live video source code, realize local storage of search history
Keepalive component cache does not take effect
Differences between standard library functions and operators
Natural language processing (NLP) - third party Library (Toolkit):allenlp [library for building various NLP models; based on pytorch]
MYSQL---查询成绩为前5名的学生
如何制作自己的机器人
BiShe - College Student Association Management System Based on SSM
Cve-2017-11882 reappearance
MIT博士论文 | 使用神经符号学习的鲁棒可靠智能系统