Files
nexus/wiki/sources/Trae远程开发部署指南.md

39 lines
1.4 KiB
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.
---
title: "Trae远程开发部署指南"
type: source
tags: [Trae, Remote-SSH, Ubuntu, Docker]
date: 2026-04-03
---
## Source File
- [[raw/Vibe Coding/Trae远程开发部署指南.md]]
## Summary
- 核心主题Trae IDE通过Remote-SSH连接Ubuntu服务器进行远程开发
- 问题域内网开发环境配置、Docker容器内开发
- 方法/机制SSH免密 → Remote-SSH连接 → Attach容器/编辑宿主机
- 结论/价值两种模式——Attach容器隔离环境或宿主机编辑容器编排
## Key Claims
- 架构Ubuntu2(Dev)存放源码+Trae SSH远程Ubuntu1(Prod)镜像打包
- SSH免密ssh-copy-id上传公钥~/.ssh/config配置别名
- Docker权限usermod -aG docker shenwei使shenwei用户有权操作Docker
- Remote-SSH安装Remote-SSH/Docker/Dev Containers插件
- 模式A推荐Attach到运行中的Docker容器环境完全隔离
- 模式B编辑Ubuntu文件系统代码终端调用docker命令
- 故障排除Git凭证转发、文件UID/GID权限、内网穿透Tailscale
## Key Concepts
- [[远程开发]]Trae Remote-SSH开发模式
- [[Docker开发模式]]Attach容器 vs 宿主机编辑
## Key Entities
- [[Trae]]AI代码编辑器
- [[Ubuntu2]]192.168.3.45,开发服务器
## Connections
- [[Trae远程开发部署指南]] ← documents [[远程开发]]
## Contradictions
- 无冲突