Ubuntu系统中以Root用户身份登录并设置密码1、sudo vim /etc/ssh/sshd_config改为:PermitRootLogin yes 注释去掉 2、sudo systemctl restart ssh