ubuntu 20.04 设置 root 默认登录
1. 设置 root 密码
sudo passwd root
2. root 用户编辑 /etc/ssh/sshd_config 文件
vi /etc/ssh/sshd_config
修改前:
#PermitRootLogin prohibit-password
修改后:
PermitRootLogin yes
3. 重启ssh服务
sudo systemctl restart ssh
标签:登录,ssh,设置,ubuntu,root,20.04
From: https://www.cnblogs.com/test-works/p/17410976.html