Featured image of post Linux允许root用户登录

Linux允许root用户登录

Ubuntu等系统默认不支持使用root用户进行登录,需要做如下修改

1
2
3
4
5
vim /etc/ssh/sshd_config
# 修改以下内容
PermitRootLogin  yes
PasswordAuthentication yes
systemctl restart ssh
Licensed under CC BY-NC-SA 4.0
使用 Hugo 构建
主题 StackJimmy 设计