Files
nexus/wiki/concepts/Remote-SSH.md
2026-04-17 08:38:12 +08:00

40 lines
1.2 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: "Remote-SSH"
type: concept
tags: [remote-development, vscode-plugin]
---
## 定义
Remote-SSH 是 VS Code/Trae 的远程开发插件,允许开发者通过 SSH 协议连接到远程服务器,在远程主机上直接进行开发、调试和运行代码。
## 工作原理
1. 本地运行 Trae/VS Code 客户端
2. 通过 SSH 连接到远程服务器
3. 在远程服务器上安装 VS Code ServerTrae Server
4. 所有代码操作在远程服务器执行,本地仅显示 UI
## 核心功能
- 远程文件夹浏览和编辑
- 远程终端访问
- 远程调试功能
- 插件安装在远程服务器
## 应用场景
- 服务器端开发
- 跨平台开发(本地 Windows远程 Linux
- 容器内开发(通过 Remote-Containers
- 高性能开发(利用远程服务器算力)
## 优点
- 无需在本地配置复杂开发环境
- 利用远程服务器资源进行编译和测试
- 代码始终保存在远程服务器,安全性高
## 关联工具
- [[Trae]]:支持 Remote-SSH 的 AI 增强编辑器
- [[Docker]]:远程服务器上的容器化环境
- [[SSH]]:远程连接协议
## 连接关系
- [[Remote-SSH]] ← connects_to ← [[SSH]]
- [[Remote-SSH]] ← runs_on ← [[Ubuntu]]