edit commands.md
All checks were successful
Deploy / deploy (push) Successful in 1m8s

This commit is contained in:
2026-03-12 21:04:06 +08:00
parent 29cf27ac7f
commit 94b365889b

View File

@@ -8,7 +8,7 @@ level: classified
### Maria ### Maria
**推送 GitHub 私钥**: **配置 GitHub 私钥**:
```bash ```bash
# 在 CatTomServer1 处执行 # 在 CatTomServer1 处执行
@@ -19,10 +19,27 @@ rsync -avP /home/cattom/.ssh/cattomgithub root@[server_ip]:/root/.ssh/
rsync -avP -e 'ssh -p 25800 -i /home/cattom/.ssh/Maria' /home/cattom/.ssh/cattomgithub root@[server_ip]:/root/.ssh/ rsync -avP -e 'ssh -p 25800 -i /home/cattom/.ssh/Maria' /home/cattom/.ssh/cattomgithub root@[server_ip]:/root/.ssh/
``` ```
**编辑 SSH 客户端配置**:
```bash
sudo nano ~/.ssh/config
```
``` title="~/.ssh/config"
Host github.com
HostName ssh.github.com
User git
Port 443
PreferredAuthentications publickey
IdentityFile "~/.ssh/cattomgithub"
```
测试能否正常连接: `ssh -T git@github.com`
**克隆 Maria 仓库**: **克隆 Maria 仓库**:
```bash ```bash
git config --global credential.helper store && git clone https://github.com/cattomgithub/maria.git git clone git@github.com:cattomgithub/maria.git
cd maria/script && chmod +x *.sh && ./maria.sh cd maria/script && chmod +x *.sh && ./maria.sh
``` ```