ssh remote
This commit is contained in:
@@ -0,0 +1,11 @@
|
|||||||
|
# ssh 代理
|
||||||
|
|
||||||
|
```bash
|
||||||
|
|
||||||
|
|
||||||
|
# 将本地的 2017 端口映射到远程服务器的 8022 端口
|
||||||
|
ssh -R 8022:localhost:2017 user@ip -N
|
||||||
|
|
||||||
|
# 将远程服务器的 8022 端口映射到本地的 2017 端口
|
||||||
|
ssh -L 2017:localhost:8022 user@ip -N
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user