I've lost the access key on my Oracle Cloud Compute VM where I run an Ubuntu 22.04. I am able to access the service console but what is described here is relevant only for Oracle Linux (I presume) https://www.ateam-oracle.com/post/i-get-permission-denied-when-i-ssh-to-my-oracle-cloud-infrastructure-compute-instance, therefore I cannot bypass the login screen.
The Ubuntu image is a standard Canonical image, so the ubuntu user can't be logged on with (there is no password that was set).
Any ideas, suggestions?
Appreciate in advance.
CodePudding user response:
Even tried this https://k21academy.com/1z0-1072/recover-ssh-keys-in-compute-instance/, which is smart, however I still get:
ubuntu@130......: Permission denied (publickey).
CodePudding user response:
Mixed it with these instructions https://www.maketecheasier.com/reset-root-password-linux/ and the Oracle console connection
Basically I've used chroot to be able to change the password of the /mnt mounted OS, then used the Oracle console to log in, and how I figure out much more easily what is wrong with the keys!