当前位置:网站首页>解决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
边栏推荐
- 正则表达式
- elk安装
- js 格式化时间
- Recyclerview advanced use (II) - simple implementation of vertical drag and drop sorting
- 01-NIO基础之ByteBuffer和FileChannel
- Operation instructions of star boundary automatic text translator (advanced version)
- rsync+inotify远程同步
- openstack理论知识
- MYSQL一种分表实现方案及InnoDB、MyISAM、MRG_MYISAM等各种引擎应用场景介绍
- Gartner预测云迁移规模大幅增长;云迁移的优势是什么?
猜你喜欢
MySQL数据库讲解(九)
MySQL数据库讲解(十)
教育行业云迁移最佳实践:海云捷迅使用HyperMotion云迁移产品为北京某大学实施渐进式迁移,成功率100%
微信小程序将原生请求通过es6的promise来进行优化
Gartner预测云迁移规模大幅增长;云迁移的优势是什么?
RecyclerView高级使用(一)-侧滑删除的简单实现
ThreadGroup ThreadGroup implémente l'interface threadfactory en utilisant la classe Introduction + Custom thread Factory
x509证书cer格式转pem格式
Use the executors class to quickly create a thread pool
A table splitting implementation scheme of MySQL and InnoDB, MyISAM and MRG_ Introduction to MyISAM and other engine application scenarios
随机推荐
mysql查询库大小
微信小程序客服接入,实现发送和接收消息
mysql 5.1升级到5.66
js 格式化时间
使用开源调研工具Prophet是一种什么体验?
01-NIO基础之ByteBuffer和FileChannel
js 键值判断
剑指offer刷题(2)--面向华为
jsp学习3
Get the thread return value. Introduction to the use of future interface and futuretask class
OpenStack如何跨版本升级
在MAC上安装mysql
JDBC详解
sql中出现一个变态问题
KVM学习资源
FBS (fman build system) packaging
政务云迁移实践 北明数科使用HyperMotion云迁移产品为某政府单位实施上云迁移项目,15天内完成近百套主机迁移
Multiple inheritance virtual base exercises
Five ways of using synchronized to remove clouds and fog are introduced
uni-app消息推送