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
專家
已審閱 1 個月前
  • 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?

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南