linux限制具备超级管理员权限的用户远程登录

2024-04-19 16:22:24 阅读:3 编辑

限制root从远程ssh登录,修改/etc/ssh/sshd_config文件,将PermitRootLogin yes改为PermitRootLogin no。

重启sshd

service sshd restart