Terrence,
Terrence,
I only have experience with OpenSSH.
This is the command I use to setup the tunnel:
ssh -L '1522:localhost:1521' remotehost.com 'ping -i 60 localhost'
I did that using Cygwin (which uses OpenSSH) and I got:
[t.brannan@bcrtfl1-d30h7f1: ~] ssh -L '1522:localhost:30012' ora01.hhh.net 'ping -i 60 localhost'
ssh: connect to host ora.hhh.net port 22: Connection timed out
You need to figure out why the tunnel cannot be established.
This is what I get when it is running:
~> ssh -L '1522:localhost:1521' remotehost.com 'ping -i 60 localhost'
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.021 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.029 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.021 ms
...
it seems to be ignoring the :30012 part of the -L command
I've heard that Putty should be easy to get going in case you haven't checked it.
stunnel seems to be straightforward (almost)... you simply setup an entry saying what port you will accept on the localhost and what host and port you want to ssh to.
Per the screencast:
http://www.screencast.com/users/terrence_work/folders/Jing/media/392fe155-0b2e-4319-be3d-bf25d3d511bb
you can see that it creates an ssh session when it tries to connect. However, the attempt to connect via ssh tunneling dies with the error:
An error occurred while establishing the connection:
Type: java.sql.SQLRecoverableException Error Code: 17002 SQL State: 08006
Message:
IO Error: Connection reset
This is most likely related to the error with the tunnel not running properly.
Regards
Roger