From f6c39c66f0051a14fa6c96d03eec58509dbf35a8 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Thu, 8 Feb 2024 19:28:32 +0800 Subject: [PATCH] fix: style --- docs/best-practices/remote-deployment.md | 4 ++-- docs/zh/best-practices/remote-deployment.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/best-practices/remote-deployment.md b/docs/best-practices/remote-deployment.md index 7382271..6e438f0 100644 --- a/docs/best-practices/remote-deployment.md +++ b/docs/best-practices/remote-deployment.md @@ -15,8 +15,8 @@ Let me briefly guide you through using colmena or `nixos-rebuild` for remote dep Before embarking on remote deployment, a few preparatory steps are necessary: 1. To prevent remote host's sudo password verification failure, choose one of the following methods: - 1. Deploy as the remote host's `root` user. - 2. Add `security.sudo.wheelNeedsPassword = false;` to the remote host's configuration and manually deploy once in advance to grant the user passwordless sudo permissions.. + 1. Deploy as the remote host's `root` user. + 2. Add `security.sudo.wheelNeedsPassword = false;` to the remote host's configuration and manually deploy once in advance to grant the user passwordless sudo permissions.. 2. Configure SSH public key authentication for the remote hosts. diff --git a/docs/zh/best-practices/remote-deployment.md b/docs/zh/best-practices/remote-deployment.md index 6043a04..79fdafd 100644 --- a/docs/zh/best-practices/remote-deployment.md +++ b/docs/zh/best-practices/remote-deployment.md @@ -14,8 +14,8 @@ Nix 本身的设计就很适合远程部署,Nix 社区也有许多专门用于 在进行远程部署之前,需要做一些准备工作: 1. 为了防止远程主机的 sudo 密码验证失败,有两种方法,二选一: - 1. 以远程主机的 `root` 用户身份部署 - 2. 在远程主机的配置中添加 `security.sudo.wheelNeedsPassword = false;` 并提前手动部署一次,从而为用户授予免密码验证的 sudo 权限。 + 1. 以远程主机的 `root` 用户身份部署 + 2. 在远程主机的配置中添加 `security.sudo.wheelNeedsPassword = false;` 并提前手动部署一次,从而为用户授予免密码验证的 sudo 权限。 2. 为远程主机配置 SSH 公钥身份验证。 建议使用 `root` 用户进行部署,因为这更方便且不需要额外的配置,没有令人头疼的 sudo 权限问题。