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?

demandé il y a 2 ans745 vues
2 réponses
1
Réponse acceptée

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
répondu il y a 2 ans
profile picture
EXPERT
vérifié il y a un mois
  • 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
EXPERT
Toni_S
répondu il y a 2 ans
  • Ok thanks, so should I do something else to log in as root?

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions