Linux 禁止root远程登录

修改/etc/ssh/sshd_config

PermitRootLogin no

重启ssh:service sshd restart

ok,可以使用su root切换至root用户权限