User Tools

Site Tools


linux:ssh-tunnel

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:ssh-tunnel [2018/05/26 09:51] Wulf Rajeklinux: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 for ssh credentials. The connection is pushed in the background and the port will remain forwarded as long as this ssh connection remains active.+In this example, the remote port 3306 on the remote server will be forwarded to local port 3307 using login@remoteserver for ssh credentials. The connection is pushed in the background and the port will remain forwarded as long as this ssh connection remains active.
  
 <code> <code>
-ssh login@server -L 3307:127.0.0.1:3306 -N &+ssh login@remote-server -L 3307:127.0.0.1:3306 -N & 
 +</code> 
 + 
 +Multiple ports can be forwarded by simply repeating the -L command: 
 +<code> 
 +ssh remote-host -L 8822:REMOTE_IP_1:22 -L 9922:REMOTE_IP_2:22
 </code> </code>
  
linux/ssh-tunnel.1527324707.txt.gz · Last modified: 2023/05/29 11:53 (external edit)