1 检查是否配置登陆超时时间设置* @
编辑vi /etc/profile文件,配置TMOUT将值设置为低于300.
TMOUT=300
source /etc/profile
2 检测是否限制 root 用户远程登录*@
修改配置:vi /etc/ssh/sshd_config,修改或配置PermitRootLogin no
systemctl restart sshd.service
1 检查是否配置登陆超时时间设置* @
编辑vi /etc/profile文件,配置TMOUT将值设置为低于300.
TMOUT=300
source /etc/profile
2 检测是否限制 root 用户远程登录*@
修改配置:vi /etc/ssh/sshd_config,修改或配置PermitRootLogin no
systemctl restart sshd.service