I have SSH access to 'public' server, which is also the gateway to company network. There is another server in the network, where local Oracle Database server is running (There is no access from outside of this server, only localhost DB connections are accepted). And of course, I have another SSH access to this server.
Is there any way to join to this Oracle Database 11g Server from outside of the network ? I am asking if there is something like ssh tunnel chain, and how i configure it. This can be usefull, for example, for TOAD for Oracle (ORACLE client).
EDIT: Here is image
Thanks
Thanks!
I called
ssh -N -LXXXX:server:YYYY login@server
twice.First, I called
on my PC.
Then, on this server (during the SSH session), I called
where 192.168.105.111 is server where ORACLE was running.
So what I did is following redirection:
So I got ORACLE access in my local PC at port 9998 !
Yes, it's possible. E.g. on Linux, run
where
The same can be done on Windows using Plink (which comes with Putty):
Do this on both machines (your local machine and the server you have access to) to chain the ssh tunnels. Example:
Connection server (assuming Linux):
Your PC:
The tnsnames.ora entry must look like you are running a local database, e.g.
you can add as well the
-f
option which run the ssh command in the background.