SSH tunneling to connect to remote computer

Hi,
I have to connect to my remote database(RHEL box) from a windows using SSH tunnel
1. I have set up the SSH tunneling(with outgoing tunnel)
2. I have made a entry in the TNSnames.ora file
3. I establish connection to the remote server using SSH client and when i do tnsping
i do get connection. Even when i change the host name to some unkown name i do get a tnsping but iam not able to connect to the database. do iam wrong anywhere
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = ISIL-PRJ
-04)(PORT = 1523)) (CONNECT_DATA = (SID = ora1022b)))
OK (800 msec)
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = ISIL-PRJ
-04)(PORT = 1523)) (CONNECT_DATA = (SID = blablabla)))
OK (800 msec)
even when i change my sid name i get a tnsping. can anybody explain

Hi,
Looking for this schema below and see if help you:
           Secure Connection
   +---->-------[SSH]-------->-----+
   |                               |
   |                               |
   ^                               |
   |       Insecure Connection     v
CLIENT---->--------------------> 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)
     <SERVICE> =
       (DESCRIPTION =
         (ADDRESS_LIST =                     
           (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
         (CONNECT_DATA =
           (SID = <SID>)
       )Cheers

Similar Messages

  • Using different credetial to connect to remote computer to get Cert information

    I am using following function to get cert details from remote computers. How do I change it to accept credentials to connect to remote computer?
    PS : Remote computers are windows 2003 computers without PowerShell installed on it.
    function Get-Cert( $computer=$env:computername ){    $ro=[System.Security.Cryptography.X509Certificates.OpenFlags]"ReadOnly"    $lm=[System.Security.Cryptography.X509Certificates.StoreLocation]"LocalMachine"    $store=new-object System.Security.Cryptography.X509Certificates.X509Store("\\$computer\my",$lm)    $store.Open($ro)    $store.Certificates}Get-Cert ServerA
    -Edatha-

    Certainly.  Here's a quick example that uses the PowerShell registry provider as a quick an easy way to enumerate the subkeys of HKLM\Software\Microsoft\SystemCertificates\MY\Certificates\ , and to read the Blob value as a byte array.  In your
    case, you'd probably want to look into using something like WMI's StdRegProv class to accomplish the same thing.
    Once you have the byte array, just pass it to the constructor of X509Certificate2.  (Note the unary comma in that constructor call; we're binding an object to the -ArgumentList parameter of New-Object, and when you're calling constructors that take
    a single array argument, you need the comma.)
    Get-ChildItem HKLM:\SOFTWARE\Microsoft\SystemCertificates\MY\Certificates |
    ForEach-Object {
    $byteArray = (Get-ItemProperty -Path $_.PSPath -Name Blob).Blob
    $certificate = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2(,$byteArray)
    $certificate

  • SSH tunneling X to locked Windows computer.

    Hi
    I have recenty installed and configurated ssh to tunnel x. But I need a way to connect to it on a school computer and every other type of computer where I cant install softwares. The windows computers in school are all part of some sort of thin clients /server solution. And I cant post stuff on the desctop I can't reach the harddrives or any thing like that. I got a network share where I might be able to put stuff. Also I can't use a usb stick and start to software from there. So is there a possible way to ssh tunnel x to one of these computers?
    Last edited by lintz (2010-03-03 07:52:23)

    Use Putty on the windows machine. It's a simple .exe which doesn't need to be installed anywhere.
    http://www.chiark.greenend.org.uk/~sgtatham/putty/
    There are plenty of 'how to' guides for using Putty to access an ssh server and setting up and using tunnels.
    http://souptonuts.sourceforge.net/sshtips.htm
    http://jstrassburg.blogspot.com/2006/01 … th-dd.html
    etc. etc.
    It'll do what you want. I use the same to get from XP at work to home, and we have similar restrictions at work. Even better - by using x11vnc on Arch and then vncviewer on XP (also a simple .exe) I am able to bring up my Arch desktop as a remote desktop on my XP setup.
    The one thing I haven't worked out yet is how to copy files from my Arch machine to XP at work, since I am unable to setup an ssh server at work - although I can now email them to myself using the remote desktop!
    Last edited by sultanoswing (2010-03-03 08:49:30)

  • Connecting to Remote Computer

    Does Mac have the capability to connect to a Windows based remote computer? For example, I'm planning on purchasing a MacBook Pro soon and I need to know if I will be able to connect remotely to my office computer which is Windows based.
    Any help would be great.

    The answer depends. Can you currently connect using another computer today?
    If you can, then you should be able to connect with your Mac.
    Microsoft offers Remote Desktop Connection client for Mac OS X
    <http://www.microsoft.com/mac/otherproducts/otherproducts.aspx?pid=remotedesktop client>
    You can use a Mac VNC client, such as Chicken of the VNC, to connect to a VNC server on your Windows system, such as TightVNC.
    LogMeIn.com allows remotely connecting to PCs from Macs via a browser such as Safari. You would have to run the LogMeIn server on your PC.
    There are other services that allow you to connect Macs and PC over the internet.
    However, many times computers systems at work are behind firewalls that block incoming connections. Companies that do allow remote access often times require the use of VPN software. Depending on the VPN being used, there may or may not be a Mac client. My company uses a Cisco VPN server and provides employees with the Mac Cisco VPN client.

  • JDBC connect from remote computer fails

    Hi all,
    I have successfully installed the XE server and I can connect over JDBC from clients running locally on the machine where the XE server is installed.
    However when I try to connect from a remote computer using the same client I get an error saying: The Network Adapter could not establish the connection
    I can ping the machine with XE installed and all firewalls on the machines are turned off.
    Any ideas on the subject of JDBC remote connect to XE server? Or is it simply that it is not supported?
    Appreciate all the help I can get.
    Thanks,
    /Anders

    On my machine I have the listener bound to local interface.
    Listener.ora has hostname in it, and this is the listener status:
    As status shows the hostname is resolved to localhost, on this machine I am unable (with this configuration) to share the db to other machines (I do not have oracle client on my other pc, but telnet is unable to connect to port 1521).
    Changing hostname to ipaddres solves.
    [andrea@bones ~]$ lsnrctl status
    LSNRCTL for Linux: Version 10.2.0.1.0 - Beta on 15-DEC-2005 21:28:51
    Copyright (c) 1991, 2005, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=bones)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Beta
    Start Date                15-DEC-2005 21:28:40
    Uptime                    0 days 0 hr. 0 min. 11 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Default Service           XE
    Listener Parameter File   /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin/listener.ora
    Listener Log File         /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/log/listener.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=8080))(Presentation=HTTP)(Session=RAW))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "XE" has 1 instance(s).
      Instance "XE", status READY, has 1 handler(s) for this service...
    Service "XEXDB" has 1 instance(s).
      Instance "XE", status READY, has 1 handler(s) for this service...
    Service "XE_XPT" has 1 instance(s).
      Instance "XE", status READY, has 1 handler(s) for this service...
    The command completed successfully
    [andrea@bones ~]$

  • Telnet cannot connect to Remote Computer

    When I telnet my localhost it works completely fine..
    But It's not able to connect to Remote Host
    It says Unable to Connect to Remote Host, Operation Timed Out
    But my Remote Laptop is able to connect to this system perfectly...
    I don't understand where's the issue.
    Any Help ??

    Do you mean, you can access the target computer using the other computer and not the
    one you’re on right now? Can you ping the target computer using that computer
    and vice versa? Just make sure that the computers are pinging each other to
    ensure that they are communicating.

  • Ethernet connection between remote computer and remote ax

    My wireless system is Time capsule connected to the cable modem. Airport Express connects through the wireless network created by TC. My G5 is connected to the AX by ethernet. Initially the G5 was able to connect to the internet by the ethernet connection. I attempted to connect my MacBook but I was unsuccessful. Any help would be appreciated.
    Thanks,
    Gordon

    Solved the problem. The wireless network has to be setup as a WDS network in order to connect a remote device by ethernet to a remote TC, AExp, or AExt.

  • Cannot connect to remote computer

    Hi all, I've spent a lot of time trying to figure this out, would appreciate any help as I'm new to ARD, (3.3.2 version).
    Here goes... I have 5 Macs on my home network, and have had very little problem connecting and controlling them from ARD. My problems start when I try to connect to my not-to-computer-savvy relatives elsewhere.
    The first one is running a new iMac behind an airport extreme, I have ticked thier Remote Management box and opened the ARD ports on the extreme and I think I have correctly set up a static IP address of 10.0.1.3, on the 'configure IPv4' 'using DHCP with manual address'. I have then asked that user to give me his IP address from 'http://www.myipaddress.com' and this is the address I type into ARD - Scanner - Network Address. However this will not work, I cannot 'see' them or let me verify the user when I try to 'control' of 'observe'.
    The second computer is behind a 'Linksys WAG 54G2', so I'll need to forward the ports like this.. http://portforward.com/english/routers/portforwarding/Linksys/WAG54G2/Apple_RemoteDesktop.htm
    I have also tried to 'Ping' without success both these computers using 'Network Utility'
    Very frustrated. Any help appreciated.
    Max

    Do you mean, you can access the target computer using the other computer and not the
    one you’re on right now? Can you ping the target computer using that computer
    and vice versa? Just make sure that the computers are pinging each other to
    ensure that they are communicating.

  • Similar to connecting to remote computer using WSManagement, how to do it through powershell terminal?

    I have the following code to connect to the remote powershell and execute script on remote machine :WSManConnectionInfo connectionInfo = new WSManConnectionInfo(false, "MachineName", 5985, "/wsman", shellUri, credential);
    using (Runspace runspace = RunspaceFactory.CreateRunspace(connectionInfo))
    runspace.Open();
    using (PowerShell powershell = PowerShell.Create())
    powershell.Runspace = runspace;
    String file = @"C:\scripts\createUser.ps1";
    powershell.Commands.AddScript(System.IO.File.ReadAllText(file));
    Collection<PSObject> results = powershell.Invoke();
    }How to execute the script in same way from powershell command prompt?

    Hi,
    The Invoke-Command cmdlet should to the trick for you using WinRM.
    Invoke-Command -ComputerName MachineName -Scriptblock {c:\scripts\createuser.ps1}
    The parameter -File could also be used for pointing to an UNC share or so.
    More information regarding the cmdlet is found below..
    http://technet.microsoft.com/en-us/library/hh849719.aspx
    Microsoft Certified Trainer
    MCSE: Desktop, Server, Private Cloud, Messaging
    Blog: http://365lab.net

  • Because of a protocol error this session will be disconnected. Please try connecting to remote computer again.

    I have one user who continues to receive this error every time he try's to RDP to this server Windows Server (2008) Enterprise SP2. No other users receive this error when they RDP to the server.
    I used this workaround...
    Windows Server 2008 (SP1 or SP2)
    1. Logon to the Terminal Services computer as an administrator
    2. Start--Run gpedit.msc, click Continue if prompted by UAC
    3. In the left pane, under Computer Configuration, navigate to following:
    Administrative Templates\Windows Components\Terminal Services\Terminal Server\Remote Session Environment
    4. In the right pane, double-click on Set compression algorithm for RDP data
    5. Select Enabled, and choose Balances memory and network bandwidth
    6. Click OK to save the change
    This did not resolve my issue.

    Hi,
    Glad to hear that you have resolved your issue. 
    Thank you for sharing your experience here. It will be very beneficial for other community members who have similar questions. 
    If you want any more solution in future, kindly place your post in Forum.
    Regards,
    Dharmesh

  • How to connect to remote computer using ARD and AE

    Does anyone have detailed instructions on how I can us my AirPort Extreme and setup all the ports to allow the use of ARD remotely?

    You can configure your AirPort Extreme for ARD using the AirPort Utility. ARD is one of the choices under Port Mapping.
    You get to the port mapping option, as follows:
    Run the AirPort Utility.
    Select the AirPort Extreme, and then, select Edit.
    Select the Network tab to enable it.
    Click on the "+" button under the Port Settings field.
    Click on the drop-down arrow to the right of the Description field. (see image below)
    Select Apple Remote Desktop. This will automatically populate the other fields on the page.
    Select Save, and then, select Update.
    Allow the base station to reset.

  • Connect to remote computer connected via airport

    hi
    i can successfully hook up to my ibook at home without issue as long as it's connected to my broadband modem directly via ethernet i just type the ip address, wait for a moment and it connects. as soon as i connect it it my airport (white airport extreme) i can't.
    any suggestions?

    thanks niel.
    i've had a look at this (via portforwarding.com) and still can't get it to work. ard is coming up with the right connection: 82-XX-XXX-XXX.cable.ubr10.edin.blueyonder.co.uk but i get 'connection failed' each time i try to login to an account.

  • Connection with remote computer

    I want to write a program that checks the status of remote machines continuously whether they are on or off. Which method i should use

    @Ian: I agree. You could easily implement a multi-cast (or similar) heartbeat solution if you control the machines and can ensure the heartbeat is running via a scheduler or other means.
    But if you simply want to write a standalone program to check other machines without installing software on them, I could see that being more problematic. You might be able to come up with an O/S specific solution or assume certain programs are always installed. But there are problems in each of those methodologies, IMO.
    - Saish

  • How to establish data socket connection with remote computer

    hi am new to data socket subject, cau u guys guide me on this...
    i want to establish connection between system with lv and datasocket modem.... so i need to create vi to receive
    the data and insert into sql from modem(its having data socket option).
     Pls help me.........

    duplicate post -- continue here

  • How to open multi-windows to operate a remote compute using socket

    hi, please help me.
    I want to develop a program, it can open multi-windows to operate the remote comput at one time just like NetTerm. It use socket to setup connection with remote computer.
    Now I am using a Thread class to setup socket connection with computer, and use Thread's static varible to control all kinds of action of socket.But it can work only when openning one window,because all the thread instances share the same static variable.
    How to do it? Not using Thread? Then the frame will be frozen.
    All adivse are welcomed.Thank you.

    Maybe I don't say it clearly.The program need to show the output of the socket in the JTextArea and transfer the user input to the input of the socket to control the remote computer.

Maybe you are looking for

  • Data from one tcode to another

    hi friends, is there any possible to pass data entered in one tcode to another eg.. i am entering header text in tcode MIRO has vehicle i should get this same header text in tcode MIGO is it possible thanks regards raj

  • How do you copy a selected area of multiple layers?

    I'm trying to create an animated gif using PS and I can't find out how to copy multiple layers. Right now I have 110 different layers and I want to select the same portion of every layer and copy it into a new file without flattening the image. So I

  • Can i trade my apple IPAD 2 for IPAD 3

    I havent had my IPAD 2 for a year but now I see that the IPAD 3 is coming out. Does the apple Store allow trade in? Thanks

  • Certificate selection problem in Safari

    Hi , I have certifcates A,B,C,D for the same site , whenever i use the Mozilla it is asking which one to select , but somehow i dont know why Safari is asking the same option. It is forcing me to accept Certifcate A to that paricular site. How to sol

  • CAN NOT TURN OFF ?

    can't turn my Ipad2 off ...rotating icon keeps rotating