SSH Tunneling Using MobaXterm

In this post I will show  how to create a SSH Tunnel for connections to Oracle database. I will use a jumper host to get the database host. Remember that the information between your computer and the jump server is encrypted, but from the server to the database server it does not.

 

moba_tunneling_1

Push on New SSH Tunnel

moba_tunneling_2

You see a window like this

moba_tunneling_3

Check Local port forwarding

moba_tunneling_4

Now push Save buttom, you have a tunnel. Now you only need to activate the tunnel every time you use it. MobaXterm in its free version only allows a maximum of three tunnels. When there will be a tunnel, it will ask us for the user password of the jump server.

Now every time you connect to an Oracle database, you must specify in the connect string, the HOST must be your localhost or 127.0.0.1. and in the port of connection to the listener, the port that we have put before as forwarded port. In this example the 7777.

 

HTH – Antonio NAVARRO

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s