Ssh Setup a SSH Tunnel: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * OpenSSH Operations =Overview=")
 
Line 4: Line 4:


=Overview=
=Overview=
OpenSSH can be used to tunnel traffic from the local host to a remote host you have an account on.
=Setting a Tunnel from a Local Port to a Port on a Remote Host=
ssh -f <''remote-host-ssh-user''>@<''remote-host''> -L <''local-port''>:<''remote-host''>:<''port-on-remote-host''> -N
The "-f" option tells ssh to go to background.
The "-N" option tells ssh to NOT execute any command on the remote system.

Revision as of 02:34, 27 December 2018

Internal

Overview

OpenSSH can be used to tunnel traffic from the local host to a remote host you have an account on.

Setting a Tunnel from a Local Port to a Port on a Remote Host

ssh -f <remote-host-ssh-user>@<remote-host> -L <local-port>:<remote-host>:<port-on-remote-host> -N

The "-f" option tells ssh to go to background.

The "-N" option tells ssh to NOT execute any command on the remote system.