sshd调优

sshd调优:

禁用dns查找,加快速度

在sshd_config中设置:
UseDNS no

禁用root登录:
建立普通用户
在sshd_config中设置
PermitRootLogin no

以上设置需要重启sshd服务

这样子就禁用了root通过ssh登录,普通用户登录后,使用su -切换到root账户

原文地址:https://www.cnblogs.com/itfenqing/p/4429401.html