4

As the title suggested I have lost my Linux Instance password. I have already accessed it via putty and it's ppk key. But I don't remember the password of system.

Is there any another way to access the system again?

Password Forget

3 Answers 3

7

Your screenshot says "server refused our key". That means you don't have the private key for your instance. I'm not sure there is a password.

You can try something like this to mount the volume then reset the password / create a new key.

1
  • And the screenshot clearly shows that the login attempt is done as root. As long as root login with password was not enabled on purpose this will not work.
    – hargut
    Nov 5, 2018 at 18:05
4

As far as I know, there is no passwords set by default. Important is that you try to login with the correct user.

Depending on which AMI you selected this can vary. ec2-user for AWS Linux, ubuntu for Ubuntu, centos for CentOS.

1
  • Actually, it's Linux Instance, and I forget the password as it was set by another person, and I want to recover the password now.
    – Shreeya
    Nov 5, 2018 at 7:06
3

If you feel that you cannot get access to system. You can create AMI of your instance, create a volume of that AMI and then create a new instance and mount that volume on new instance and recover the data.

1
  • p.s. use ubuntu as default user with key.
    – user475310
    Nov 6, 2018 at 11:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .