docs: 补充有关单独按照 SSH 密钥的使用说明.

This commit is contained in:
LamGC 2023-10-23 08:50:10 +00:00
parent 3fc77a32ad
commit 44a6cbbdbe
Signed by: LamGC
GPG Key ID: 6C5AE2A913941E1D

View File

@ -6,7 +6,7 @@
- 定期自动更新 SSH 公钥到服务器中;
- 集中管理注册到服务器的 SSH 公钥(例如使用 Github 管理 SSH 公钥);
## Usage
## Quick Usage
部署密钥并设置定期更新:
```bash
curl -s https://ssh.lamgc.me | bash -s -- -c
@ -15,6 +15,10 @@ curl -s https://ssh.lamgc.me | bash -s -- -c
```bash
curl -s https://ssh.lamgc.me | bash -s
```
跳过检查 SSH Server只需要安装秘钥的话就需要单独使用 `-o` 参数:
```bash
curl -s https://ssh.lamgc.me | bash -s -- -o
```
添加 `-p yes` 参数可以设置允许 Root 用户使用密码登录 SSH需使用 Root 用户执行脚本):
```bash
curl -s https://ssh.lamgc.me | bash -s -- -p yes
@ -24,6 +28,8 @@ curl -s https://ssh.lamgc.me | bash -s -- -p yes
curl -s https://ssh.lamgc.me | bash -s -- -h
```
> Note: 更多用法请参见脚本帮助信息~
## Paths
获取 SSH 公钥:
```