debian 系统允许 root 登录 ssh

  • 编辑 /etc/ssh/sshd_config
  • 找到 # Authentication 项下的
    PermitRootLogin prohibit-password 改成 PermitRootLogin yes
  • 重启 ssh sudo systemctl restart sshd