当前位置:网站首页>解决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
边栏推荐
猜你喜欢
01-NIO基础之ByteBuffer和FileChannel
VMware 15pro mounts the hard disk of the real computer in the deepin system
连接公司跳板机取别名
教育行业云迁移最佳实践:海云捷迅使用HyperMotion云迁移产品为北京某大学实施渐进式迁移,成功率100%
MySQL数据库讲解(十)
在MAC上安装mysql
Storage path of mod subscribed by starbound Creative Workshop at Star boundary
xx项目架构随记
使用Executors类快速创建线程池
OpenStack命令操作
随机推荐
dp-[NOIP2000]方格取数
HyperMotion云迁移完成阿里云专有云产品生态集成认证
Understand the concepts of virtual base class, virtual function and pure virtual function (turn)
openstack理论知识
logback-logger和root
关于NodeJS中JSON5的相关配置和使用
Recyclerview advanced use (I) - simple implementation of sideslip deletion
ie8 浏览器提示是否 阻止访问js脚本
dp-能量项链
RecyclerView高级使用(二)-垂直拖拽排序的简单实现
RecyclerView细节研究-RecyclerView点击错位问题的探讨与修复
Introduction to the use of countdownlatch and cyclicbarrier for inter thread control
redis数据库讲解二(redis高可用、持久化、性能管理)
关于云容灾,你需要知道这些
线程间控制之Semaphore使用介绍
MySQL数据库讲解(九)
How to do a project easily
Pass in external parameters to the main function in clion
Postman的安装使用及填坑心得
ActiveMQ Basics