ubuntu使用Root登陆方法 TaiEgle 2023-04-09 141 阅读1分钟 1.执行以下命令,设置 root 密码。 sudo passwd root 2. sudo vi /etc/ssh/sshd_config 3.找到 #Authentication,将 PasswordAuthentication 参数修改为 yes ,将 PermitRootLogin 参数修改为 yes