当前位置:网站首页>解决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
边栏推荐
- HyperBDR云容灾V3.2.1版本发布|支持更多云平台,新增监控告警功能
- 星界边境文本自动翻译机(高级版)使用说明
- Oracle-数据泵使用
- Operation instructions of star boundary text automatic translator
- PySide2
- 微信小程序将原生请求通过es6的promise来进行优化
- 01-NIO基础之ByteBuffer和FileChannel
- Pass in external parameters to the main function in clion
- Five ways of using synchronized to remove clouds and fog are introduced
- js 键值判断
猜你喜欢
统信UOS卸载php7.2.24,安装php7.4.27 ;卸载再安装为PHP 7.2.34
剑指offer刷题(2)--面向华为
Recyclerview advanced use (I) - simple implementation of sideslip deletion
01-nio basic ByteBuffer and filechannel
利用json-server在本地创建服务器请求
Postman的安装使用及填坑心得
关于云容灾,你需要知道这些
About the configuration and use of json5 in nodejs
HyperMotion云迁移助力中国联通,青云完成某央企上云项目,加速该集团核心业务系统上云进程
教育行业云迁移最佳实践:海云捷迅使用HyperMotion云迁移产品为北京某大学实施渐进式迁移,成功率100%
随机推荐
Quickly understand the three ways of thread implementation
Understand the concepts of virtual base class, virtual function and pure virtual function (turn)
uni-app消息推送
DP - [noip2000] grid access
如何快速批量创建文本文档?
mysql 5.1升级到5.69
redis数据库讲解(三)redis数据类型
mysql锁数据库锁
js 进度条,显示加载进度
网页自适应,等比缩放
HyperBDR云容灾V3.3.0版本发布|容灾功能升级,资源组管理功能优化
困扰多年的系统调研问题有自动化采集工具了,还是开源免费的
VMware15Pro在Deepin系统里面挂载真机电脑硬盘
KVM学习资源
Installation and use of postman pit
百度笔试2022.4.12+编程题目:简单整数问题
Wechat applet communicates with low-power Bluetooth - receives data sent by hardware (IV)
贷款市场报价利率(LPR)与贷款基准利率介绍
PySide2
Visio installation error 1:1935 2: {XXXXXXXX