• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Techgoeasy

Techgoeasy

Learn Oracle, PHP, HTML,CSS,Perl,UNIX shell scripts

  • Home
  • Oracle
    • Oracle database
    • Oracle Ebusiness Suite
    • Oracle weblogic
    • Oracle Performance Tuning
    • Oracle Hyperion
    • Oracle Cloud Tutorials
  • SQL
  • interview questions
  • Linux
  • PHP and HTML
  • Downloads
  • General
Home » Oracle » How to Create SSH Tunneling or Port Forwarding in Linux to connect with Oracle database on Cloud

How to Create SSH Tunneling or Port Forwarding in Linux to connect with Oracle database on Cloud

January 21, 2020 by techgoeasy Leave a Comment

How to Login to Oracle Cloud Database on port 1521 using SSH tunnel with Linux client

$ ssh -i private-key-file -L local-port:target-ip-address:target-port [email protected]target-ip-address

private-key-file is the path to the SSH private key file.

local-port is the number of an available port on your Linux system. Specify a port number greater than 1023 and less than 49152 to avoid conflicts with ports that are reserved for the system. As a good practice, and for the sake of simplicity, you should specify the same port number as the one to which you are creating a tunnel.

target-ip-address is the IP address of the target compute node in xyz.xyz.xyz.xyz format.

target-port is the port number to which you want to create a tunnel.

If this is the first time you are connecting to the target compute node, the ssh utility prompts you to confirm the public key. In response to the prompt, enter yes.
After the SSH tunnel is created, you can access the port on the target compute node by specifying localhost:local-port on your Linux system

Related Articles
Port Forwarding from Putty in windows
Oracle Cloud Infrastructure
SSH Putty Commands :- 41 Useful SSH commands to help you manage the VPS /Dedicated Server
ssh passwordless:- How to Enable ssh passwordless login setup between two servers
Remote Desktop Manager : – Awesome Free Remote Desktop manager
install SSH on Ubuntu : How to install SSH on Ubuntu with Detailed steps and Problem faced

Filed Under: Oracle, Oracle cloud

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar



Subscribe to our mailing list

Enter your email address to subscribe to this blog and receive notifications of new posts by email

Recent Posts

  • How to use sed to remove comments and blank lines
  • How to recover database using RMAN
  • How to check Stale statistics
  • Java web start(JWS) in R12
  • How to delete the archive logs in Oracle

Copyright © 2023 : TechGoEasy

  • Hire me
  • Privacy Policy
  • Contact Us
  • New? Start Here
  • About Us