ubuntu logo

Ubuntu: ssh tunnel to a remote server port

Spread the love

I have just set up ssh tunneling for a client to a remote port on a remote server behind a firewall.

Set up ssh tunnel:

This can be done really simply on ubuntu by running the following command:

In this example I am forwarding port 3333 to port 1521 the vm by sshing to the server with the user user:

ssh -L 3333: -N -f user@

The server will then be able to connect to port 1521 on the remote server by connecting to local port 3333.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top