From 8ce37df04484a7ced0920f5ab3fd82bcddeb3aac Mon Sep 17 00:00:00 2001 From: LamGC Date: Sat, 28 Jan 2023 23:11:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=8D=E6=9B=B4=E6=96=B0=E4=B8=80=E4=B8=8B?= =?UTF-8?q?=20Readme.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3763452..53be7cd 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,28 @@ # Quickly Configuring SSH Server -Quickly install SSH into the server. +快速地将 SSH 密钥部署到服务器中,并定期更新。 + +这个脚本可以帮你做到这些事情: +- 快速配置服务器的 SSH Server; +- 定期自动更新 SSH 公钥到服务器中; +- 集中管理注册到服务器的 SSH 公钥(例如使用 Github 管理 SSH 公钥); ## Usage -执行命令: +部署密钥并设置定期更新: ```bash curl -s https://ssh.lamgc.me | bash -s -- -c ``` -如果不希望自动更新密钥,可以执行: +如果不希望自动更新密钥,可以移除 `-c` 参数: ```bash curl -s https://ssh.lamgc.me | bash -s ``` +添加 `-p yes` 参数可以设置允许 Root 用户使用密码登录 SSH: +```bash +curl -s https://ssh.lamgc.me | bash -s -- -p yes +``` +要查看脚本的帮助信息,请使用 `-h` 参数: +```bash +curl -s https://ssh.lamgc.me | bash -s -- -h +``` ## Install ### Configuration