由于root用户拥有最高权限,出于安全目的,建议取消root用户SSH远程登录服务器的权限,以提升系统安全性。具体操作步骤如下:
vim /etc/ssh/sshd_config
PermitRootLogin no
systemctl restart sshd