ORA Connect via SSH Tunnel on Windows failed! LINUX works ...

Hello again,
i tried to establish a Oracle Client Connection via SSH Tunnel on WinXP Pro.
1. Opened SSH-Tunnel Connection with plink (putty)
TUNNEL: 10.5.1.111:1521 => localhost:1521
(plink works fine with telnet, MySQL Client and other stuff)
2. Connected with Oracle Client on Tunnel END => Localhost, Port 1521
3. WIth ORA8i i got: Paket Error, With ORA10g i get: TNS: no listener
plink works fine, so i dont think the problem is located there.
i tried, tnsnames.ora, easyconnect and TNS-Less. So i guess, its not related to the connection method.
i tried the same on LINUX ... ssh tunnel and sqlplus connect ... IT WORKS !
Does Oracle need an aditional Port?
Does it have Problems with WIN2UNIX Connections? (ORA DB is on UNIX)
tnx

Hi,
Hum..., I guess this not work!
Looking for this schema below, you need put the 1521 port
If you desire, access the www.ssh.com site and download other ssh program
           Secure Connection
   +---->-------[SSH]-------->-----+
   |                               |
   |                               |
   ^                               |
   |       Insecure Connection     v
CLIENTE--->--------------------> ORACLE
ssh2 -l oracle -L 1521:192.148.1.251:1521 200.10.11.12
                    |          |                |
                    |          |                |
               A  LOCAL        |                |
               B       INTERNAL IP ORACLE       |
               C                       EXTERNAL IP (GATEWAY)
                                                     C                             B
      | Firewall| . . . . .|INTERNET| . . . . . . |Firewall| . . . . . . . . . . |ORACLE|
      | Gateway |                                 |Gateway |                 192.148.1.251:1521
           .                                     200.10.11.12                                  
     A     .
   |Oracle Client|
   (TNSNAMES.ORA)
     <SERVICO> =
       (DESCRIPTION =
         (ADDRESS_LIST =                     
           (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
         (CONNECT_DATA =
           (SID = <ORCL>)
       )Cheers

Similar Messages

  • Using a CVS repository via ssh from a Windows Machine

    I'm trying to set up a connection
    via ssh to a CVS repository (on Linux) with JDev 9.0.5.1
    (build 1605) on Windows. I'd like to use password to
    authenticate myself to CVS repository.
    Shay Shmeltzer pointed me to
    http://helponline.oracle.com/jdeveloper/help/state?navSetId=jdeveloper&navId=4&vtTopicId=&vtTopicFile=jdeveloper/using_support_for_tbd/scm_p_settingupcvs.html
    The solution explained there need access to the remote
    server in order to insert the key in authorized_keys,
    and we don't have this kind of access (the CVS repository
    is not mantained by our company).
    Do you think JDev will support password authentication
    for CVS/ssh in some future release?
    We're currently using WinCVS Client to access that
    repository, and each time we connect to the
    repository, a DOS windows appears asking us the password.
    I guess that this could be a solution.
    Thanks
    --luca

    We used to try to support popuping up the console, but that never worked too well from Java.
    Here's some thoughts on the matter from an article at http://www.devguy.com/fp/cfgmgmt/cvs/cvs_ssh.htm
    Hiding Your Password without Public Keys
    If you want to avoid typing your password at the command line for each operation and don't have the ability to put your public key on the SSH server...
    1. Create the following one-line Perl script and save it as my_ssh_cvs.pl
    system("plink.exe", "-ssh", "-pw", "YOURPASSWORD", @ARGV);
    2. Use PERL2EXE or ActiveState's perldevkit (perlapp -f my_ssh_cvs.pl) to create an executable from the script, e.g., my_ssh_cvs.exe
    3. Delete my_ssh_cvs.pl
    4. Run WinCVS
    5. Select Admin/Preferences...
    6. Click Settings... (for the ssh protocol)
    7. Click "If ssh is not in the PATH" and enter my_ssh_cvs.exe
    8. For "additional SSH options", leave it blank
    (however use the external locator in the connection wizard in JDeveloper to locate the my_ssh_cvs.exe)
    (note: this isn't officially suppported nor endorsed)
    Rob
    Team JDev

  • Opening Multiple DB Connections to MySQL via SSH Tunneling

    I'm connecting to a MySQL database through SSH.  Specifically I'm using PuTTY to establish a connection, and then tunnel the port through 3306.  Then I'm creating an ODBC Data source to my local 3306 port and using that datasource to open the connection in LabVIEW.
    I'm looking to run queries in parallel, and to do that, I believe I need to open up multiple connections.  Has anyone tried this before? Is there anyother way to do this?

    Hi Jonathan,
    I wasn't able to find too many resources on using multiple connections to a MySQL through SSH.  
    I was able to find this:
    http://digital.ni.com/public.nsf/allkb/C49602A79827DDBE86256CE9005757D5
    that might give you some more information.
    I would try to open up multiple connections if the database supports it and try it that way.
    If you have any troulbe with that route, feel free to let us know.
    Sincerely,
    Bogdan Buricea
    Applications Engineering
    National Instruments
    Bogdan Buricea
    Applications Engineer
    National Instruments

  • Jconsole - remote connection thru ssh-tunnel

    Hi all,
    I need to start jconsole on my windows-box and connect to a remote tomcat-server thru an ssh-tunnel.
    I have walked thru various posts and blogs, but finally couldn't get it running.
    On the linux-server, I have set the following JAVA_OPTS:
    export JAVA_OPTS='-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8888 -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.useLocalHostname=true -Dcom.sun.management.jmxremote.authenticate=false -Djava.rmi.server.hostname=myserver'myserver is the server-name that is resolved by the hostname-command. I also tried using localhost instead.
    On the client I run the following ssh-command to create the tunnel:
    ssh tomcat@myserver -L8888:myserver:8888 -N -vWhen I try to create a remote connection with jconsole using localhost:8888, I see the following output by ssh:
    debug1: Connection to port 8888 forwarding to myserver port 8888 requested.
    debug1: channel 1: new [direct-tcpip]
    debug1: channel 1: free: direct-tcpip: listening port 8888 for myserver port 8888, connect from 127.0.0.1 port 1618, nchannels 2It looks not too bad to me, but unfortunately, jconsole runs into a timeout after about 2 mins.
    On the server I see the following using netstat:
    tcp        0    168 myserver:ssh    mywindowsbox:3381  VERBUNDEN  
    tcp        0      0 myserver:ssh    mywindowsbox:1317  VERBUNDEN  
    tcp        0      0 myserver:44625  myserver:8888   TIME_WAIT  
    tcp        0      0 *:8888                      *:*                         LISTENIt appears to me that the tomcat-server is listening correctly on port 8888 for all incoming hosts (although localhost should be enough).
    Furthermore, it seems that the ssh-tunnel has been establised.
    Why the hell, jconsole still can't connect?

    Hiya.
    JMX connections use two ports. You need the RMI Registry and the RMI Stub. This first one you bound to port 8888, but the other one is probably still bound to a random port. You need to be able to access that one through SSH as well.
    Trouble is that the second port uses a random port and most application servers can't statically configure this one. See this article for possible solutions (be sure to read the follow ups as well) : http://blogs.sun.com/jmxetc/entry/connecting_through_firewall_using_jmx
    Cheers,
    Hugp

  • Using Workgroup Manager via SSH tunnel

    Hi all,
    I'm attempting to use the Workgroup Manager app to remotely administer a OS X Tiger Server box. The server sits inside my company's LAN behind a firewall, which only allows traffic to the server on ports 21 (ftp), 22 (ssh), 80 (http) and 311 (server admin with SSL, I believe). All services on those ports work fine.
    My research on the net indicates that the Workgroup Manager app uses port 625, but since the hardware firewall is blocking traffic on that port to the server, I'd like to create an SSH tunnel to access it. I've tried the following command on my local machine (i.e., not the server):
    $ sudo ssh -L 625:localhost:625 [email protected]
    and am able to set up the tunnel with no problem. However when I try to connect Workgroup Manager (on the local machine) to localhost, it won't let me connect. So I tried telnetting to localhost port 625 (on the local machine) to see what's up, and received the following error:
    $ telnet localhost 625
    Trying ::1...
    Connected to localhost.
    Escape character is '^]'.
    Connection closed by foreign host.
    Am I missing something? I was under the impression that the SSH tunnel would allow me to access port 625 on the server via port 22. The software firewall is disabled on both machines, so it's not that. I'm not experienced with SSH tunnelling, so I could be totally wrong about the way this is supposed to work.
    Thanks in advance!

    A quick tcpdump here indicates that Workgroup Manager uses both 311 and 625 when establishing a connection to the server. It may be the lack of port 311 tunneling that's causing your problem.
    $ sudo ssh -L 625:localhost:625 -L 311:localhost:311 [email protected]

  • Connection hange while trying to connect via ssh.

    Hi all,
    I have this problem and i fixed it, just wanted to understand the logic behiend it.
    I tried to login to a machine via ssh.
    After providing the username and password, the connection hang until you press CTRL -C.
    I checked DNS configuration, and some other stuff.
    The problem was a NFS entry in the vfstab that was unreachable.
    When i removed it, the connection went smoothlly.
    My question is, why that entry caused that problem ?
    Thanks!

    At login, the shell runs 'quota -v' to display any over-quota conditions that might exist.
    If the NFS mount was not mounted with "noquta", then it will send an RPC request to the server. If the server is down, that request will take 60 seconds to time out. If you have multiple mounts to the server, they might run sequentially.
    The login should complete after a minute or so, but most users won't wait that long.
    Darren

  • I can not connect via SSH to a MacBook (the internal home network)

    Hi all! There is an internal home network of three computers and Wi-Fi router. On the router and the computers with Win7 via SSH I go (with a MacBook) without problems, but on a MacBook with any other computer can not enter via SSH. What could be wrong?

    ssh -v -v -v [email protected]
    Do this once for a working system,
    And once for a broken system.
    Compare the output and see what is says where the broken system changes radically from the working system.
    Also on the destination system look in the /var/log/secure.log file for sshd entries to see if the destination system is rejecting your connection and for what reason.
    It is possible on the destination system to get even more information by changing the /etc/sshd_config file entry
    #LogLevel INFO
    to
    LogLevel DEBUG3
    then issue the command
    sudo kill -HUP  `/var/run/sshd.pid`  # reload sshd configuration parameters

  • 1841 = Unable to connect via SSH

    I am able to connect to this router via a crypto isakmp tunnel using telnet. However, I am unable to setup SSH on this thing. Can someone please assist me in what I may be missing. I am at a dead end now. I have posted router info and similar input below.
    Cisco IOS Software, 1841 Software (C1841-ADVSECURITYK9-M), Version 12.4(3), RELEASE SOFT
    WARE (fc2)
    ======================================
    ip domain name CISCO$.COM
    ip ssh time-out 60
    ip ssh port 2222 rotary 1
    ip ssh source-interface FastEthernet0/0
    ip ssh version 2
    ======================================
    ip access-list extended CISCO
    permit tcp x.x.x.x x.x.x.x any eq 2222
    deny ip any any log
    access-list 101 permit tcp x.x.x.x x.x.x.x any eq telnet
    access-list 101 deny tcp any any eq telnet log
    ==========================================
    line vty 0 4
    access-class 101 in
    exec-timeout 3 0
    password xxxxxxxxxx
    transport input all
    transport output all
    line vty 5 15
    access-class CISCO in
    password xxxxxxxx
    transport input telnet ssh
    transport output telnet ssh
    =====================================

    Were you able to generate a key? If not create a domain-name which is needed to help generate the key
    Router(config) ip domain-name Test.lcl
    Router(config)#crypto key generate rsa
    Lastly you will also need AAA enabled...to enable locally do the following:
    Router (config)# aaa new-model
    Router (config)# username password
    Router (config)# ip ssh time-out
    Router (config)# ip ssh authentication-retries

  • Tiff2icns doesn't work via ssh w/o window manager

    I need to run tiff2icns on a Mac mini (Mac OS X 10.4.6) via a remote ssh connection. Unfortunately this doesn't work if I don't have a window manager session open on the Mac at that time. Is this a bug in tiff2icns, or am I doing something wrong? I want to run tiff2icns without having a window manager open on the remote system.
    Franz
    Mac mini   Mac OS X (10.4.6)  

    any ideas?

  • Can no longer connect via ssh

    I've been trying to learn basic networking and have set up a website to upload files to. I've been using ssh in Terminal to do this. Until today I have had no problem connecting and logging into the hosting site and transferring files.
    Now, after I enter my password, ssh does nothing, offers no response, takes no commands.
    Any ideas on what happened and how to remedy this?
    Thanks

    Answered my own question:
    opened another terminal window and used the command killall ssh to abort the previous session.
    Still don't know why it won't login to my server.

  • Gnome X11 apps not working via ssh tunnel to Mac OS X 10.3.8

    Here's my environment:
    Solaris 10 SPARC (from release DVD isos)
    Sun Blade 100
    PowerBook G4 17" w/OS X 10.3.8 and X11 1.0 - XFree86 4.3.0 (same problems under 10.3.7)
    I have configured X11 forwarding on the Blade (sshd) and Mac client. (ssh). This seems to work for all X11 apps on the Blade, EXCEPT gnome-based apps, such as gnome-terminal, gnome-text-editor, mahjong, etc. These USED to work on the exact same hosts under Solaris 9 9/04.
    The error is the same for any "broken" app:
    -bash-3.00$ mahjongg
    The program 'mahjongg' received an X Window System error.
    This probably reflects a bug in the program.
    The error was 'BadWindow (invalid Window parameter)'.
    (Details: serial 11 error_code 3 request_code 128 minor_code 2)
    (Note to programmers: normally, X errors are reported asynchronously;
    that is, you will receive the error a while after causing it.
    To debug your program, run it with the --sync command line
    option to change this behavior. You can then get a meaningful
    backtrace from your debugger if you break on the gdk_x_error() function.)
    -bash-3.00$ gnome-text-editor
    The program 'gnome-text-editor' received an X Window System error.
    This probably reflects a bug in the program.
    The error was 'BadWindow (invalid Window parameter)'.
    (Details: serial 11 error_code 3 request_code 128 minor_code 2)
    (Note to programmers: normally, X errors are reported asynchronously;
    that is, you will receive the error a while after causing it.
    To debug your program, run it with the --sync command line
    option to change this behavior. You can then get a meaningful
    backtrace from your debugger if you break on the gdk_x_error() function.)
    I have tried this in rooted and non-rooted environments. I also tried it on an iBook (G3) and PowerMac G4, all with similar configurations to the one listed above.
    Any ideas?
    Thanks,
    Charles

    Try using 'ssh -Y' when connecting.

  • Cannot connect VIA Remote Desktop to Windows 8.1 on a virtual machine

    I have Windows 8.1 Enterprise running in a Hyper-V VM. For some reason I cannot connect to the VM using remote desktop. I am using a Microsoft account and  remote desktop is enabled and my account has access. I am able to see the VM under
    networks and access shared folders. The error I am getting is "Remote Desktop can't connect to the remote computer....".
    Any ideas?

    My account has access to RDP. The  firewall rule to allow RDP was missing the permission for public networks. After this change the RDP client can find the computer and I can get in. Yay!
    Thanks for the tip to check the firewall.

  • HT3500 Is it possible to connect via wi-fi a Windows 7 PC to a printer configured to print wirelessly using Macs?

    We have three Macs and a PC using Windows 7 in our family. While the three Mac users are able to print wirelessly to the printer using an Airport Express, I haven't been able to figure out how to connect the PC to the printer. The printer is simply not seen by the PC on the same network. Is it possible to connect both a PC and a Mac to the same printer using w-fi?

    http://support.apple.com/kb/DL999
    Download and run the installer from there (just like installing any other program on Windows). Windows systems require this to be installed and bizarrely it doesn't auto-install along with AirPort Utility.

  • Get InitialContext for P4-connection via Http tunneling

    Hi,
    I have to use an Http tunnel to access my integration J2EE engine.
    Now, I want to create a P4-connection. It doesn't work. No InitialContext will be returned.
    I can open the VisualAdmin on the http tunneling port. But in the connection GUI I can select 'Http tunneling' as connection type. Is there any setting, i.e. property, for the InitialContext to signal that Http tunneling should be used ?
    Regards,
    Astrid

    Hi Astrid,
    yes, you need ot use TransportLayerQueue property of the InitialContext to specify that you need Http Tunneling as the transport layer. See <a href="http://help.sap.com/saphelp_nw04/helpdata/en/c8/5bc0417951cf17e10000000a155106/frameset.htm">this</a> page for description.
    Did you use that already?
    Regards,
    Ivo

  • Allowing other users to connect via SSH and using X apps.

    My computer starts ssh as daemon and I can connect from other workstations, but I can't use ssh -X to use X apps.
    I usually do not need it, but when I do it is pretty annoying.
    I can connect to the university computer and use X apps, but I can't connect from uni to home... :S

    I just did this on the machine you have sshed into you want to set the DISPLAY variable to 192.168.1.5:0
    So if using bash it should be DISPLAY=192.168.1.5:0
    The ip address being the address of your computer that you trying to run the X apps on.
    I also believe you have to run xhost +
    So to sum it up:
    xhost +
    DISPLAY=192.168.1.5:0
    ssh -X ezzetabi@remotemachine

Maybe you are looking for

  • How can create a table in sap script?

    Hi, How to create a table in the sap script.i Have to use table in the main window with 11  rows and 3 columns. can any one send sample code. Any ideas?¿ THKS 4all.

  • 5.1 Audio Mapping Export

    I am using Adobe Premiere CS6 and planning ahead to export a short film I'm working on for a DCP conversion service. (Link) When I emailed them they say that they require 5.1 sound to be exported in the following mapped channel order; Left, Right, Ce

  • WSDL/XSD problem

    I deployed one pl/sql web services using jdeveloper10g to oc4j. within this webservices, there are two operations which reture two set of xml data. For each operation call, the biztalk server need to validate against xsd files that we provide to them

  • Grid Control showing excessive amount of disk utilization.

    Hi Folks, I understand that Oracle doesn't support their products 100% on non Oracle VMs, but I thought I might take a stab at it. I decided to stick with a simple installation of Oracle Grid Control running on a Windows 2003 R2 32 bit os, here are t

  • Online account setup - number not recognized

    Hello, Please can someone help me, I've already tried google anf other search engines to see if there is a solution to my problem, but I've had no luck so far. I am trying to set up an online account to manage my bills/usage etceach time I try to reg