To allow FlexDeploy to deploy to a database instance on the Oracle cloud without having to open up the database ports via the firewall, an ssh tunnel can be established from an internal server. This ssh tunnel can then be configured to talk to the database listener via the ssh tunnel. To accomplish this, on a server on the local network that will serve as the endpoint to connect to the cloud database:
mkdir /home/oracle/.ssh/id_rsa
id_rsa
file with the private keychmod -R 600 /home/oracle/.ssh
LOCALPORT
to the port that FlexDeploy will connect to on the endpointCLOUD_INSTANCE
to the public DNS name or IP Address of the cloud instanceCLOUD_DB_PORT
to the listener port of the database on the cloudssh -i /home/oracle/.ssh/id_rsa -f -L LOCALPORT:CLOUD_INSTANCE:CLOUD_DB_PORT oracle@CLOUD_INSTANCE -N
EXAMPLE:
ssh -i /home/oracle/.ssh/id_rsa -f -L 1621: oc-129-144-43-94.compute.oraclecloud.com:1521 oracle@oc-129-144-43-94.compute.oraclecloud.com -N |
Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.
|