增加远程开发 快速入门

This commit is contained in:
Your Name
2024-05-27 10:29:01 +00:00
parent a2ba78c80c
commit 5fc8eefd6b
3 changed files with 71 additions and 11 deletions
+23
View File
@@ -0,0 +1,23 @@
# ssh 开发快速入门
前提: 已经按照[说明](./开发机隧道方案.md#a-aws-ssh-tunnel-连接)配置好了ssh
## 连接代码仓库
假设你给开发机配置的名字是 my-dev
以下命令可以把gitea转发到本地
```bash
ssh -N -L 8888:c.l:443 my-dev
```
本地浏览器打开 localhost:8888 就可以访问代码仓库
## 前,后端项目转发
当你使用vscode时, vscode会自动转发你启动项目的端口, 在下方区域`端口`栏查看.
或者手动转发
```bash
ssh -N -L {本地端口}:localhost:{开发机目标端口} my-dev
```
##