Ubuntu 20.04 开启 root 远程登录
- 切换到 root 用户
- 修改 sshd_config
- 重启 ssh 服务
vive@ubuntua:~$ su - root
Password:
root@ubuntua:~#
root@ubuntua:~# vim /etc/ssh/sshd_config
...
#PermitRootLogin prohibit-password
PermitRootLogin yes # 允许root直接登录
...
#PermitEmptyPasswords no
PermitEmptyPasswords no # 因为设置了root密码,所以需要修改为no
...
root@ubuntua:~#
root@ubuntua:~#
root@ubuntua:~# systemctl restart ssh
root@ubuntua:~#
阅读剩余
THE END