Linux系统怎么设置允许root登录
Ubuntu系统默认设置不允许使用root登录
- 修改配置
# cat /etc/ssh/sshd_config
# 设置以下配置
PermitRootLogin yes
- 重启sshd
# systemctl restart sshd
- 可以使用root登录
Ubuntu系统默认设置不允许使用root登录
# cat /etc/ssh/sshd_config
# 设置以下配置
PermitRootLogin yes
# systemctl restart sshd