ssh remote
This commit is contained in:
parent
4400e24dca
commit
ab3ef79e7c
11
linux/ssh.md
Normal file
11
linux/ssh.md
Normal file
@ -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
|
||||
```
|
||||
Loading…
x
Reference in New Issue
Block a user