diff --git a/docs/tech/Commands-for-Server-Operation-and-Maintenance.md b/docs/tech/Commands-for-Server-Operation-and-Maintenance.md index a4f62aa..8942b42 100644 --- a/docs/tech/Commands-for-Server-Operation-and-Maintenance.md +++ b/docs/tech/Commands-for-Server-Operation-and-Maintenance.md @@ -40,6 +40,33 @@ git clone git@github.com:cattomgithub/maria.git cd maria/script && chmod +x *.sh && ./maria.sh ``` +### HomeLab + +**编辑 SSH 客户端配置**: + +```bash +sudo nano ~/.ssh/config +``` + +``` title="~/.ssh/config" +Host gitea.cattom.site +HostName gitea.cattom.site +User git +Port 25801 +PreferredAuthentications publickey +IdentityFile "~/.ssh/cattom-gitea" +``` + +测试能否正常连接: `ssh -T git@gitea.cattom.site` + +**克隆 HomeLab 仓库**: + +```bash +git clone git@gitea.cattom.site:cattom/HomeLab.git + +cd HomeLab && chmod +x *.sh && ./Ini.sh +``` + ## 修改 SSH 配置 **启动 SSH 服务**: @@ -178,13 +205,13 @@ Maria 非标端口开放表: | 2 | 5230 | 127.0.0.1 | / | / | Memos | | 2 | 3002 | 127.0.0.1 | / | / | Homepage | | 2 | 3100 | 127.0.0.1 | / | / | Gitea | -| 2 | 25801 | 127.0.0.1 | / | / | Gitea SSH | +| 2 | 25801 | / | / | / | Gitea SSH | -| 服务器 | 端口 | 来源IP/IP段 | 目标IP/IP段 | 协议 | 备注 | -| :----: | :---: | :-----------: | :---------: | :---: | :---------------: | -| 3 | 6800 | 127.0.0.1 | / | / | Aria2 RPC | -| 3 | 6888 | / | / | / | Aria2 BT | -| 3 | 6888 | / | / | UDP | Aria2 BT | +| 服务器 | 端口 | 来源IP/IP段 | 目标IP/IP段 | 协议 | 备注 | +| :----: | :---: | :-----------: | :---------: | :---: | :----------------: | +| 3 | 6800 | 127.0.0.1 | / | / | Aria2 RPC | +| 3 | 6888 | / | / | / | Aria2 BT | +| 3 | 6888 | / | / | UDP | Aria2 BT | | 3 | 9100 | 100.64.0.0/10 | / | / | Node Exporter [^1] | [^1]: 服务器3的 Prometheus 处于容器内,而 Node Exporter 处于宿主机,必须保留该规则以保持二者连通。