42 lines
1.7 KiB
Markdown
42 lines
1.7 KiB
Markdown
---
|
||
title: "Remote Development"
|
||
type: concept
|
||
tags: [development, ssh, remote-workflow]
|
||
last_updated: 2026-04-17
|
||
---
|
||
|
||
## Aliases
|
||
- Remote SSH
|
||
- Remote Development
|
||
- 远程开发
|
||
|
||
## Definition
|
||
通过 IDE 的远程连接功能,在远程服务器上进行代码开发、调试和部署,而本地机器仅作为 UI 终端。核心技术是 SSH 协议和远程插件生态(如 VS Code Remote-SSH、Trae Remote-SSH)。
|
||
|
||
## Core Components
|
||
- **SSH 免密登录**:通过 SSH Key 实现无密码认证,是远程连接的基础
|
||
- **Remote Server**:运行代码和 Docker 服务的远程主机(Ubuntu Server 等)
|
||
- **IDE Client**:本地安装的代码编辑器,通过 SSH 隧道连接到远程服务器
|
||
- **VS Code Server/Trae Server**:在远程服务器上安装的代理组件,负责处理文件操作和终端会话
|
||
|
||
## Workflow
|
||
1. 配置 SSH Config 文件,在本地定义远程主机的连接别名
|
||
2. 安装 Remote-SSH 插件
|
||
3. 连接远程主机,IDE 自动安装远程服务器组件
|
||
4. 打开远程文件夹,开始开发
|
||
|
||
## Related Concepts
|
||
- [[Bind Mount]]:Docker 挂载方式,与远程开发配合实现代码实时同步
|
||
- [[Docker Compose]]:远程开发项目的运行环境定义工具
|
||
- [[Vibe Coding]]:通过 AI 增强的远程开发工作流
|
||
- [[Trae]]:支持 Remote-SSH 的国产 AI IDE
|
||
- [[OpenCode]]:CLI 形态的远程 AI 编码 agent
|
||
|
||
## Related Entities
|
||
- [[Trae]]:支持 Remote-SSH 的 IDE
|
||
- [[Ubuntu]]:常用远程开发主机操作系统
|
||
- [[Tailscale]]:安全的公网远程访问工具
|
||
|
||
## References
|
||
- [[Trae远程开发部署指南]] — 完整的 Remote-SSH + Docker 开发配置指南
|