Linux系统怎么设置允许root登录

Ubuntu系统默认设置不允许使用root登录

  1. 修改配置
#  cat /etc/ssh/sshd_config
# 设置以下配置
PermitRootLogin yes
  1. 重启sshd
# systemctl restart sshd
  1. 可以使用root登录
posted @ 2025-04-25 14:04  minseo  阅读(206)  评论(0)    收藏  举报