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?

질문됨 2년 전745회 조회
2개 답변
1
수락된 답변

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
답변함 2년 전
profile picture
전문가
검토됨 한 달 전
  • 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
전문가
Toni_S
답변함 2년 전
  • Ok thanks, so should I do something else to log in as root?

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠