AWS Instance Password lost after Login











up vote
4
down vote

favorite
1












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










share|improve this question




























    up vote
    4
    down vote

    favorite
    1












    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










    share|improve this question


























      up vote
      4
      down vote

      favorite
      1









      up vote
      4
      down vote

      favorite
      1






      1





      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










      share|improve this question















      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







      ssh amazon-web-services password putty aws-cli






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 5 at 13:28









      hjpotter92

      4101517




      4101517










      asked Nov 5 at 5:48









      Shreeya

      214




      214






















          3 Answers
          3






          active

          oldest

          votes

















          up vote
          6
          down vote













          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.






          share|improve this answer





















          • 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 at 18:05


















          up vote
          4
          down vote













          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.






          share|improve this answer





















          • 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 at 7:06


















          up vote
          3
          down vote













          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.






          share|improve this answer








          New contributor




          Epz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.


















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











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "2"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f938625%2faws-instance-password-lost-after-login%23new-answer', 'question_page');
          }
          );

          Post as a guest
































          3 Answers
          3






          active

          oldest

          votes








          3 Answers
          3






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          6
          down vote













          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.






          share|improve this answer





















          • 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 at 18:05















          up vote
          6
          down vote













          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.






          share|improve this answer





















          • 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 at 18:05













          up vote
          6
          down vote










          up vote
          6
          down vote









          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.






          share|improve this answer












          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.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 5 at 8:06









          Tim

          16.4k31846




          16.4k31846












          • 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 at 18:05


















          • 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 at 18:05
















          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 at 18:05




          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 at 18:05












          up vote
          4
          down vote













          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.






          share|improve this answer





















          • 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 at 7:06















          up vote
          4
          down vote













          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.






          share|improve this answer





















          • 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 at 7:06













          up vote
          4
          down vote










          up vote
          4
          down vote









          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.






          share|improve this answer












          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.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 5 at 6:30









          hargut

          70916




          70916












          • 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 at 7:06


















          • 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 at 7:06
















          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 at 7:06




          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 at 7:06










          up vote
          3
          down vote













          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.






          share|improve this answer








          New contributor




          Epz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.


















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















          up vote
          3
          down vote













          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.






          share|improve this answer








          New contributor




          Epz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.


















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













          up vote
          3
          down vote










          up vote
          3
          down vote









          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.






          share|improve this answer








          New contributor




          Epz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          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.







          share|improve this answer








          New contributor




          Epz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          share|improve this answer



          share|improve this answer






          New contributor




          Epz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          answered Nov 5 at 8:50









          Epz

          311




          311




          New contributor




          Epz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





          New contributor





          Epz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.






          Epz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.












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


















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
















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




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


















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f938625%2faws-instance-password-lost-after-login%23new-answer', 'question_page');
          }
          );

          Post as a guest




















































































          這個網誌中的熱門文章

          Tangent Lines Diagram Along Smooth Curve

          Yusuf al-Mu'taman ibn Hud

          Zucchini