×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Oracle Putty SSH Tunnel

Oracle Putty SSH Tunnel

Oracle Putty SSH Tunnel

(OP)
Hi to all.
I appreciate that you can provide me detailed instructions to perform the following:
From home, I use the SafeNet Secure VPN Client to access my work.
Once connected, I have to ssh to a box (let's call it 192.168.2.29), and once connected to that box, I have to ssh to another box that has the DB Server (192.168.1.28).
There is any way to use my LOCAL sqlplus on my PC to access directly to the DB Server using Putty Tunnel option?
So basically I'd like to access the DB Server directly from my PC (if possible).

Any help is appreciated

RE: Oracle Putty SSH Tunnel

Yes. Fire up Putty on your work location.
Then, when connecting, click SSH > Tunnels in the settings tree.

In Source port, enter a port on your "local" machine (your work PC in this case). Use a port number that is not in use. (for Mysql, 3306 is the default port, so 3307 is often used here)

In the Destination field enter:
192.168.1.28:3306
(Assuming you want to connect to port 3306 on that machine)

Click "local ports accept connections from other hosts"
Don't forget to click The "add button"

Now connect using putty. Enter your credentials.

You should now be able to connect to the port on your work PC that you have given (3307 in my example) with sqlplus or any other database program.

PLEASE NOTE:
For MySQL, "localhost" is NOT the same as 127.0.0.1.
You must specify the local machine as 127.0.0.1, otherwise the network is not even used!
 

+++ Despite being wrong in every important aspect, that is a very good analogy +++
   Hex (in Darwin's Watch)

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close