Tunneling traffic through ssh
This commit is contained in:
15
src/notes/3-tunneling-traffic-through-ssh/note.md
Normal file
15
src/notes/3-tunneling-traffic-through-ssh/note.md
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
# Tunneling traffic through ssh
|
||||||
|
|
||||||
|
This lets you tunnel port 80 from your machine, to port 80 on another machine, using some ssh server as jump node.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
ssh -L <source-port>:<http-server-ip/host>:<destination-port> username@<ssh-server-ip/host>
|
||||||
|
```
|
||||||
|
|
||||||
|
Pretty neat!
|
||||||
|
|
||||||
|
Example with values:
|
||||||
|
```bash
|
||||||
|
ssh -L 80:blog.zacke.dev:80 zacke@ssh.example.org
|
||||||
|
```
|
||||||
|
|
||||||
Reference in New Issue
Block a user