本文作者:丁辉
Ubuntu允许Root用户登录
配置Root密码
1
sudo passwd root
修改 ssh 配置
1
sudo vi /etc/ssh/sshd_config
修改如下参数为 yes
1
2
3
4
5
6
7
8# 允许 root 登录,但仅限于密钥方式。确保这是 'prohibit-password' 或 'without-password'
PermitRootLogin yes
# 确保公钥认证是开启的
PubkeyAuthentication yes
# 密码认证是关闭的(增加安全性)
# PasswordAuthentication no重启 SSH 服务
1
sudo service ssh restart
I'm so cute. Please give me money.
- 本文链接: https://blog.offends.cn/Linux/Docs/Ubuntu允许Root用户登录.html
- 版权声明: 本博客所有文章除特别声明外,均默认采用 CC BY-NC-SA 4.0 许可协议。