User Tools

Site Tools


ubuntu:ssh:port_forwarding

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ubuntu:ssh:port_forwarding [2019/12/05 23:59] – created peterubuntu: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:remote_ip:remote_port_1 -L local_port_2:remote_ip:remote_port2 user@hostname.com ssh -L local_port_1:remote_ip:remote_port_1 -L local_port_2:remote_ip:remote_port2 user@hostname.com
 </code> </code>
Line 180: Line 180:
 </code> </code>
  
-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.+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)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki