Ubuntu 20.04.3开启root用户ssh远程密码登录

开启方法:

编辑配置文件/etc/ssh/sshd_config

vi /etc/ssh/sshd_config

修改:

# 找到并用#注释掉这行:
# PermitRootLogin prohibit-password
# 新建一行 添加:
PermitRootLogin yes
 # 设置是否使用口令验证。
 PasswordAuthentication yes

重启服务

sudo service ssh restart