I can't ssh
into Oracle Cloud Ubuntu 20.04 instance after do-release-upgrade
. It was upgrading well but then prompted for a reboot, after the reboot, I can't access the server via ssh
.
I have noticed that I can access it via oracle Cloud Console but then it prompts for username and password. Username is Ubuntu but password has not been set as putty keys were used to access ssh.
I was upgrading my Ubuntu version on my cloud server. I was expecting it to allow me to ssh to my server as I normally ssh to it after it was done.
I have tried using ChatGPT to assist with different options, including this approach to reset the password for the "ubuntu" user.
ChatGPT suggested:
Reboot the instance. During the reboot process, hold down the Shift key to access the GRUB menu.
In the GRUB menu, select
Advanced options for Ubuntu
. Choose the option ending with(recovery mode)
.When prompted, choose to enter the root shell.
The root filesystem is initially mounted as read-only. Remount it in read/write mode:
mount -o remount,rw /
Type the following command to change the password for the
ubuntu
user:passwd ubuntu
Follow the on-screen instructions to set a new password.
Reboot the system:
reboot
Return to the console window. Enter the username "ubuntu". Use the new password you set to log in.
But I am still unable to change the password to login via Oracle Cloud Console nor access the server via ssh.
It seems as if all of the network is down - i can't ping the server IP address but in the oracle cloud control panel It shows that the server is running.
IF trying to connect using Oracle Console, it asks for Ubuntu login username and password - but I didnt set a password.
– Muhammad Saloojee Oct 03 '23 at 14:58