当前位置:网站首页>Solve the problem of SSH configuration file optimization and slow connection

Solve the problem of SSH configuration file optimization and slow connection

2022-04-23 14:22:00 Small ash pier

ssh Profile optimization :
vim /etc/ssh/sshd_config
1、 modify root port

Port 9527

2、 Don't allow root The user login

PermitRootLogin no

3、 Do not log in with an empty password

PermitEmptyPasswords no

4、 Ban DNS(ssh Main optimization items with slow connection )

UseDNS no

5、 Don't open GSSAPI authentication (ssh Main optimization items with slow connection )

GSSAPIAuthentication no

Solve the first connection to enter yes The problem of
vim /etc/ssh/ssh_config

StrictHostKeyChecking no

Remember to restart after configuration sshd service !!

版权声明
本文为[Small ash pier]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231409158506.html