Step-by-step guide
-
-Setup the SSH to communicate from the internal endpoint to the cloud instance
-
Create an .ssh directory:
mkdir /home/oracle/.ssh/id_rsa -
Populate the
id_rsafile with the private key -
Make sure permissions on the directory and file are 600:
chmod -R 600 /home/oracle/.ssh
-
Create an .ssh directory:
-
Start the SSH tunnel as a background process:
-
Change
LOCALPORTto the port that FlexDeploy will connect to on the endpoint -
Change
CLOUD_INSTANCEto the public DNS name or IP Address of the cloud instance -
Change
CLOUD_DB_PORTto the listener port of the database on the cloud -
Run the command from the linux prompt:
ssh -i /home/oracle/.ssh/id_rsa -f -L LOCALPORT:CLOUD_INSTANCE:CLOUD_DB_PORT oracle@CLOUD_INSTANCE -N
-
Change
- Now configure FlexDeploy:
- Setup an endpoint to the server that you created the ssh tunnel on.
- Configure the Database plugin to point to a JDBC URL of localhost:1621:dbt03 on the endpoint that you set up.
- Localhost will cause it to use the ssh tunnel on the current endpoint.
- The port of 1621 is automatically forwarded via the ssh tunnel to the cloud instance’s port 1521.
- The database dbt03 resides on the cloud instance.