如何配置Debian系统root用户直接登录? echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config # 重启ssh服务,使配置生效 sudo systemctl restart ssh