ubuntu:ssh:port_forwarding
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ubuntu:ssh:port_forwarding [2019/12/05 23:59] – created peter | ubuntu:ssh:port_forwarding [2020/07/15 09:30] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 154: | Line 154: | ||
For local port forwarding, if you’d like to setup more than one port to be forwarded to a remote host, you just need to specify each rule with a new -L switch each time. The command syntax is like this: | For local port forwarding, if you’d like to setup more than one port to be forwarded to a remote host, you just need to specify each rule with a new -L switch each time. The command syntax is like this: | ||
- | <code bash? | + | <code bash> |
ssh -L local_port_1: | ssh -L local_port_1: | ||
</ | </ | ||
Line 180: | Line 180: | ||
</ | </ | ||
- | In this screenshot, you can see that there are 3 SSH tunnels established. | + | Add the -n flag to have IP addresses listed instead of resolving the hostnames. |
<code bash> | <code bash> |
ubuntu/ssh/port_forwarding.1575590351.txt.gz · Last modified: 2020/07/15 09:30 (external edit)