Creating An SSH Tunnel To A Compute Node Port
Creating An SSH Tunnel To A Compute Node Port
To create an SSH tunnel to a port on a compute node associated with Oracle Database Classic
Cloud Service, you use Secure Shell (SSH) client software that supports tunneling.
Several SSH clients that support tunneling are freely available. The following sections show
how to use SSH clients on the Linux and Windows platforms to connect to a compute node
using an SSH tunnel.
The Linux platform includes the ssh utility, an SSH client that supports SSH tunneling.
Before you use the ssh utility to create an SSH tunnel, you need the following:
The SSH private key file that pairs with the public key used during the database
deployment creation process.
The port number for which you want to create an SSH tunnel.
To create an SSH tunnel for a port using the ssh utility on Linux:
1. In a command shell, set the file permissions of the private key file so that only you
have access to it:
private-key-file is the path to the SSH private key file that matches the public key used
during the database deployment creation process.
where:
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.
PuTTY is a freely available SSH client program for Windows that supports SSH tunneling.
Before you use the ssh utility to create an SSH tunnel, you need the following:
The SSH private key file that pairs with the public key used during the database
deployment creation process.
The port number for which you want to create an SSH tunnel.
To create an SSH tunnel for a port using the PuTTY program on Windows:
b. In the Source Port box, enter the number of an available port on your 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.
c. In the Destination box, enter the IP address of the target compute node, a
colon, and the port number to which you want to create a tunnel; for example,
192.0.2.100:1521.
d. Confirm that the Local and Auto options are set.
e. Click Add to add the forwarded port.
6. In the Saved Sessions box, enter a name for this connection configuration. Then, click
Save.
7. Click Open to open the connection.
The PuTTY Configuration window is closed and the PuTTY window is displayed.
8. If this is the first time you are connecting to the target compute node, the PuTTY
Security Alert window is displayed, prompting you to confirm the public key. Click
Yes to continue connecting.
After the SSH tunnel is created, you can access the port on the target compute node by
specifying localhost:local-port on your system, where local-port is the source port
that you specified when creating the tunnel.