Skip to content

Commit

Permalink
jumper
Browse files Browse the repository at this point in the history
  • Loading branch information
hupenghui committed Sep 7, 2024
1 parent d3c6237 commit 2330c40
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions command.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,13 @@ python3 -m http.server 8080
http://localhost:8080/index.html
```

# 校园网服务器反向ssh隧道
```
# 校园网服务器(192.168.1.100)测试能不能访问外部公共ip机器(1.2.3.4)
ssh [email protected]
# 校园网服务器把本地端口映射到公共ip服务器上
ssh -R [跳板机端口]:localhost:[校园网服务器端口] [跳板机用户]@[跳板机IP]
ssh -R 2222:localhost:22 [email protected]
# 通过公共ip服务器的跳板机端口连接校园网服务器
ssh [email protected] -p 2222
```

0 comments on commit 2330c40

Please sign in to comment.