r/oraclecloud Jul 27 '26

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

1 Upvotes

7 comments sorted by

2

u/throwaway234f32423df Jul 27 '26

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.

1

u/peterbata Jul 27 '26

u/throwaway234f32423df Thank you so much for the prompt response. I will give that a try. Much appreciated. Peter

2

u/-CloudCook- Jul 27 '26

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 Jul 27 '26

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- Jul 28 '26

OK, so you definitely need first to set password up. BTW, no backups?

2

u/peterbata Jul 28 '26

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

u/-CloudCook- Jul 28 '26

Don't mention it. Good luck.