Using Putty to connect to Oracle Cloud

Fathi Riadh
2 min readOct 30, 2018

--

First of all you need to find the details of the service you want to connect to, like IP address, private key, port, etc. I will use the example for a cloud database with the default port 22 for SSH.

After you connect to the Oracle Cloud and go to Services → Database you will find the Public IP of your cloud database:

Copy this IP in Putty and leave the port to 22:

Now we need to specify the username that connects to the cloud instance, under Connection select Data and use opc for the Auto-login username:

The last step is to provide the (private) key file that was used when we created the database. Go to SSH and click on Auth then Browse and select your private key:

Optionally you can use keep alive packets to the cloud instance so that the connection does not close automatically after a period of inactivity:

Now let’s save the connection with a name so that next time we won’t have to redo all these steps. Give it a name in Saved sessions, click on Save and click Open :

The first time you connect you will need to accept the security certificate.

You are now connected on the instance as user OPC. If you wish to have access to the database you need to become first user root and then become user oracle, like this:

Switch user from opc to root: sudo su -

And switch to oracle: su oracle

That’s it.

Enjoy!

--

--