This is an article showing how to update the SSH keys on the Oracle Database Cloud instance. In my previous blog article I indicated two ways to connect to Oracle Database Cloud instance, the best way is using SSH. One thing I realized is that through the current Oracle Database Cloud User Interface I’m able to add new SSH keys, but I don’t have the possibility to remove old ones so I checked other alternatives on how to do it directly from the Operating System.

 

With Putty I’m able to connect to the Operating System using the SSH key generated by the special puttygen.exe tool. There I’m able to access the following file:

/home/oracle/.ssh/authorized_keys

Here I have all the SSH public keys I’ve added through the Oracle Cloud Database User Interface, currently I see tree entries.

I want to keep only the last key and remove the others, so the end result is:

After saving the file the connections that use the old keys will not work anymore.