This commit is contained in:
@@ -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
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user