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

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.

  • 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 '18 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.

  • 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 '18 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.

  • p.s. use ubuntu as default user with key. – Epz Nov 6 '18 at 11:09

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.