当前位置:网站首页>解决ssh配置文件优化以及连接慢的问题
解决ssh配置文件优化以及连接慢的问题
2022-04-23 14:10:00 【小灰墩墩】
ssh配置文件优化:
vim /etc/ssh/sshd_config
1、修改root端口
Port 9527
2、不允许root用户登录
PermitRootLogin no
3、禁止空密码登录
PermitEmptyPasswords no
4、禁用DNS(ssh连接慢的主要优化项)
UseDNS no
5、不开启GSSAPI认证 (ssh连接慢的主要优化项)
GSSAPIAuthentication no
解决第一次连接要输入yes的问题
vim /etc/ssh/ssh_config
StrictHostKeyChecking no
配置完成后记得重启sshd服务!!
版权声明
本文为[小灰墩墩]所创,转载请带上原文链接,感谢
https://blog.csdn.net/swyer_66/article/details/120972174
边栏推荐
- Homebrew是什么?以及使用
- 微信小程序轮播图swiper
- Understand the concepts of virtual base class, virtual function and pure virtual function (turn)
- 云容灾是什么意思?云容灾和传统容灾的区别?
- rsync+inotify远程同步
- 线程组ThreadGroup使用介绍+自定义线程工厂类实现ThreadFactory接口
- Logging module
- krpano全景之vtour文件夹和tour
- std::map 和 std::vector 内存释放
- RecyclerView进阶使用-实现仿支付宝菜单编辑页面拖拽功能
猜你喜欢

统信UOS PHP7.2.3升级至PHP7.2.24

MYSQL一种分表实现方案及InnoDB、MyISAM、MRG_MYISAM等各种引擎应用场景介绍

Research on recyclerview details - Discussion and repair of recyclerview click dislocation

Use the executors class to quickly create a thread pool

HyperMotion云迁移助力中国联通,青云完成某央企上云项目,加速该集团核心业务系统上云进程

ThreadGroup ThreadGroup implémente l'interface threadfactory en utilisant la classe Introduction + Custom thread Factory

MySQL-InnoDB-事务

星界边境文本自动翻译机使用说明

Operation instructions of star boundary text automatic translator

Visio installation error 1:1935 2: {XXXXXXXX
随机推荐
如何轻松做好一个项目
操作系统常见面试题目:
Some good articles on pthread multithreading
Returns the subscript after array sorting
Algorithem_ReverseLinkedList
yml引用其他变量
Request module
dp-能量项链
VMWare安装64位XP中文教程
mysql 5.1升级到5.610
xx项目架构随记
HyperMotion云迁移完成阿里云专有云产品生态集成认证
STD:: map and STD:: vector memory free
On the problem of cliff growth of loss function in the process of training
KVM学习资源
Mysql的安装过程(已经安装成功的步骤说明)
使用DialogFragment的一些感受及防踩坑经验(getActivity、getDialog为空,cancelable无效等)
RecyclerView进阶使用-实现仿支付宝菜单编辑页面拖拽功能
某政务云项目业务系统迁移调研实践
MySQL数据库讲解(七)