synchronization
Some checks failed
continuous-integration/drone Build is failing

This commit is contained in:
2025-08-25 15:57:40 +08:00
commit cee91802b3
106 changed files with 9124 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
> 本文作者:丁辉
# Ubuntu允许Root用户登录
1. 配置Root密码
```bash
sudo passwd root
```
2. 修改 ssh 配置
```bash
sudo vi /etc/ssh/sshd_config
```
3. 修改如下参数为 yes
```bash
# 允许 root 登录,但仅限于密钥方式。确保这是 'prohibit-password' 或 'without-password'
PermitRootLogin yes
# 确保公钥认证是开启的
PubkeyAuthentication yes
# 密码认证是关闭的(增加安全性)
# PasswordAuthentication no
```
4. 重启 SSH 服务
```bash
sudo service ssh restart
```