禁止root用户ssh登录机器

1 修改 /etc/ssh/sshd_config #PermitRootLogin yes 取消注释并改为 PermitRootLogin no

2 重启ssh /etc/init.d/sshd restart

Licensed under CC BY-NC-SA 4.0
Built with Hugo
主题 StackJimmy 设计