Files
AIGC/SSH_SETUP.md
2025-10-21 17:10:04 +08:00

40 lines
846 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# SSH密钥配置说明
## 您的SSH公钥
```
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFh5WK5GBuW/5xcZv5suVAs5LEFeea2A01zPRP5Slzh1 984523799@qq.com
```
## 配置步骤
### 1. 将公钥添加到Git服务器
- 复制上面的公钥内容
- 登录您的Git服务器管理界面
- 找到"SSH密钥"或"SSH Keys"设置
- 添加新的SSH密钥粘贴公钥内容
- 保存设置
### 2. 测试SSH连接
```bash
ssh -T git@49.234.3.145 -p 222
```
### 3. 推送代码
```bash
git push -u origin master
```
## 当前状态
- ✅ SSH密钥已生成
- ✅ Git仓库已初始化
- ✅ 代码已提交到本地
- ⏳ 等待SSH公钥添加到服务器
## 如果SSH配置有问题
可以使用HTTPS方式
```bash
git remote set-url origin https://49.234.3.145:222/blandarebiter/AIGC.git
git push -u origin master
```
(需要输入用户名和密码)