1.

What Is Ssh Port Forwarding?

Answer»

SSH Port Forwarding, sometimes called SSH Tunneling, which allows you to establish a secure SSH session and then TUNNEL arbitrary TCP connections through it. Tunnels can be created at any time, with almost no effort and no programming.

Syntax : ssh -L localport:host:hostport USER@ssh_server -N

where:

-L – port forwarding parameters

localport – local port (chose a port that is not in use by other service)

host – server that has the port (hostport) that you want to forward

hostport – remote port

-N – do not execute a remote command, (you will not have the shell, see below)

user – user that have ssh access to the ssh server (COMPUTER)

ssh_server – the ssh server that will be used for forwarding/tunneling

Without the -N option you will have not only the forwarding port but also the remote shell.

SSH Port Forwarding, sometimes called SSH Tunneling, which allows you to establish a secure SSH session and then tunnel arbitrary TCP connections through it. Tunnels can be created at any time, with almost no effort and no programming.

Syntax : ssh -L localport:host:hostport user@ssh_server -N

where:

-L – port forwarding parameters

localport – local port (chose a port that is not in use by other service)

host – server that has the port (hostport) that you want to forward

hostport – remote port

-N – do not execute a remote command, (you will not have the shell, see below)

user – user that have ssh access to the ssh server (computer)

ssh_server – the ssh server that will be used for forwarding/tunneling

Without the -N option you will have not only the forwarding port but also the remote shell.



Discussion

No Comment Found