Tunneling traffic through ssh

This commit is contained in:
2024-12-23 15:58:04 +01:00
parent cfa8a7c2af
commit d7297f0861

View 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
```