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?

feita há 2 anos745 visualizações
2 Respostas
1
Resposta aceita

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
respondido há 2 anos
profile picture
ESPECIALISTA
avaliado há um mês
  • 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
ESPECIALISTA
Toni_S
respondido há 2 anos
  • Ok thanks, so should I do something else to log in as root?

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas