To forward a connection from a local port over an ssh connection to a port on a remote system use:
ssh user@host -L source_port:dest_host:dest_port
- host - The host that user is logging into via ssh.
- source_port - The port on the local system to forward over the ssh connection.
- dest_host - The remote system that connections made to the local port will be forwarded to from the other end of the ssh connection.
- dest_port - The port of the remote system that connections will be forwarded to.
Only root can forward privileged ports.
No comments:
Post a Comment