> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://helpdesk.ggcircuit.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# 🔐 启用远程 Root SSH 访问

有时，ggCircuit 工作人员可能会要求您启用远程 SSH 访问 `root` 用户。这样可以让他们协助进行系统管理、镜像备份/恢复或故障排除。

> ⚠️ **提示：** 一般来说，允许通过 SSH 远程访问 `root` 用户**不建议**长期使用。如果可能的话，考虑创建一个单独的管理员用户。如果您*确实*决定继续，请确保您的 `root` 密码足够强大——至少**12+ 个字符**，最好是随机生成的。

---

### 🛠️ 如何通过 SSH 启用 Root 登录

您可以在基于 Debian 的服务器上运行以下命令来启用远程 root 访问：

```
sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/g' /etc/ssh/sshd_config
systemctl restart sshd.service
```
> ✅ **提示：** 如果您正在使用 **Debian 控制面板**，在那里进行这些更改以便于管理会是一个不错的主意。

---

### 🚫 禁用 Root 访问（完成后）

一旦不再需要远程帮助，强烈建议**重新禁用 root 访问**来保护您的系统：

```
sed -i 's/PermitRootLogin yes/#PermitRootLogin prohibit-password/g' /etc/ssh/sshd_config
systemctl restart sshd.service
```

保持您的系统安全始终是首要任务。如果您需要帮助创建一个安全的管理员用户，请告诉我们！