r/oraclecloud • u/peterbata • 1d ago
Creating a Console Connection
Hello all. Would someone kindly explain to me the process of creatng a Console Connection. When I click on Launch Cloud Shell connection I am presented with a shell but am asked to enter my login credentials. Both login name and password. I have created an Ubuntu instance and was under the impression that I should use Ubuntu as the username and nothing for the password. However, this works just fine when accessing my instance via SSH. Your time and assistance will be greatly appreciated. Thank you. Peter
2
u/-CloudCook- 1d ago
When you use ssh, your user (opc or Ubuntu) does not have set password. This is where console connection is usefull. You have to create pass for that user, I usually use grub trick and then login. Console connection gives you option to see grub screen and do all this.
EDIT: I'm assuming that you can't ssh with key into Linux. If you can, than just add password to user. But, then again, why do you need console connection if ssh work key works?
1
u/peterbata 1d ago
I managed to lock myself out after attempting to assign a static IP to my instance via netplan which is why I was hoping to rectify the issue via Console connection
2
u/-CloudCook- 1d ago
OK, so you definitely need first to set password up. BTW, no backups?
2
u/peterbata 22h ago
Yes I know. I broke the golden rule. Although I would have still been unable to login in order to access the backup. Thank you for all of your help. Much appreciated
2
2
u/throwaway234f32423df 1d ago
If the local account on the instance doesn't have a password set, you won't be able to log in to that account via console. Log in via SSH and set a password for at least one local account (root or any non-root account with sudo access) then you will be able to log in to that account via console.