linux:ssh-tunnel
                Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:ssh-tunnel [2018/05/26 09:51] – Wulf Rajek | linux:ssh-tunnel [2023/05/29 11:55] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ===== Forwarding ===== | ===== Forwarding ===== | ||
| - | In this example, the remote port 3306 on the remote server will be forwarded to local port 3307 using login@server  | + | In this example, the remote port 3306 on the remote server will be forwarded to local port 3307 using login@remoteserver  | 
| < | < | ||
| - | ssh login@server -L 3307: | + | ssh login@remote-server -L 3307: | 
| + | </ | ||
| + | |||
| + | Multiple ports can be forwarded by simply repeating the -L command: | ||
| + | < | ||
| + | ssh remote-host -L 8822: | ||
| </ | </ | ||
linux/ssh-tunnel.1527324707.txt.gz · Last modified:  (external edit)