AWS Lightsail CentOS 8 instance - how to find default password for ssh?

0

I created a new instance with CentOS 8. I followed the instructions in the Lightsail Documentation but when I get to step 3 and do the sudo chmod 400 command on the private key, I am prompted for a password. I don't know the password or how to find it. It isn't the password I use to log in to AWS.

Someone else in the forums suggested using sudo su-, but that didn't help.

How do I find the default password so I can connect via ssh?

posta 2 anni fa745 visualizzazioni
2 Risposte
1
Risposta accettata

As noted the permissions command should be performed on your local computer. The password for sudo will generally be your user password for your respective OS. Let us know if there is anything unclear to you in the article you linked.

Additionally, try out the in-browser SSH where you will not have to configure the key at all.

Thanks for using Lightsail

AWS
con risposta 2 anni fa
profile picture
ESPERTO
verificato un mese fa
  • Thank you so much! Can't believe I didn't think to use the OS user password, but that's what it needed.

0

The step 3 command for "sudo chmod.." is mean to be ran on your laptop to protect the private key on your machine.

profile pictureAWS
ESPERTO
Toni_S
con risposta 2 anni fa
  • Ok thanks, so should I do something else to log in as root?

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande