Dpkg-reconfigure openssh-server fails on boot

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












When I boot the linux, dpkg-reconfigure openssh-server fails and the booting gets stopped there. But when i press ctrl+c it resumes the booting with dpkg-reconfigure failed.










share|improve this question



























    up vote
    0
    down vote

    favorite












    When I boot the linux, dpkg-reconfigure openssh-server fails and the booting gets stopped there. But when i press ctrl+c it resumes the booting with dpkg-reconfigure failed.










    share|improve this question

























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      When I boot the linux, dpkg-reconfigure openssh-server fails and the booting gets stopped there. But when i press ctrl+c it resumes the booting with dpkg-reconfigure failed.










      share|improve this question















      When I boot the linux, dpkg-reconfigure openssh-server fails and the booting gets stopped there. But when i press ctrl+c it resumes the booting with dpkg-reconfigure failed.







      ssh boot arm serial-port serial-console






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 27 at 9:13









      telcoM

      14.9k12143




      14.9k12143










      asked Nov 26 at 10:09









      Rebel

      1




      1




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote













          dpkg-reconfigure openssh-server should not routinely run at every boot. It probably runs because some update procedure was interrupted. Verify that your system disk is not 100% full.



          You should then run sudo dpkg-reconfigure openssh-server or equivalent manually, and allow it to run to completion. If it produces any error messages, troubleshoot those errors.



          When the command completes successfully, it should automatically make a record in the package management database that the openssh-server package is now fully configured, and so it should no longer attempt to reconfigure it at every boot.






          share|improve this answer




















          • Its showing Creating SSH2 RSA key; this may take some time and after sometime it leaves the error message "Timedout waiting for dev-ttyMSM0 device. Dependency failed for serial getty on ttyMSM0'
            – Rebel
            Nov 27 at 3:57











          • OK, so the hardware is not a regular PC, but a Dragonboard or something similar - and it's trying (and failing) to do something with the first serial port, that is probably being used as the serial console. Probably attempting to gather some true randomness for key generation, I guess... I'd need to investigate further, but I'll need to do my day job first, so it may take a while.
            – telcoM
            Nov 27 at 8:32










          • Ok. For more info when i deleted the line "exec start=dpkg-reconfigure openssh-server " from ssh-keys.service , the system booted. But i want the system to be booted with that service.
            – Rebel
            Nov 27 at 8:53










          • ssh-keys.service could be something that is supposed to run only once, the first time the system is booted after installation, to initialize the SSH host keys. Or it might be something specific to your Linux distribution: it does not appear in any release of Debian I know of, not even the current unstable. What is the name of the distribution, by the way?
            – telcoM
            Nov 27 at 9:10










          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          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: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          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%2funix.stackexchange.com%2fquestions%2f484157%2fdpkg-reconfigure-openssh-server-fails-on-boot%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote













          dpkg-reconfigure openssh-server should not routinely run at every boot. It probably runs because some update procedure was interrupted. Verify that your system disk is not 100% full.



          You should then run sudo dpkg-reconfigure openssh-server or equivalent manually, and allow it to run to completion. If it produces any error messages, troubleshoot those errors.



          When the command completes successfully, it should automatically make a record in the package management database that the openssh-server package is now fully configured, and so it should no longer attempt to reconfigure it at every boot.






          share|improve this answer




















          • Its showing Creating SSH2 RSA key; this may take some time and after sometime it leaves the error message "Timedout waiting for dev-ttyMSM0 device. Dependency failed for serial getty on ttyMSM0'
            – Rebel
            Nov 27 at 3:57











          • OK, so the hardware is not a regular PC, but a Dragonboard or something similar - and it's trying (and failing) to do something with the first serial port, that is probably being used as the serial console. Probably attempting to gather some true randomness for key generation, I guess... I'd need to investigate further, but I'll need to do my day job first, so it may take a while.
            – telcoM
            Nov 27 at 8:32










          • Ok. For more info when i deleted the line "exec start=dpkg-reconfigure openssh-server " from ssh-keys.service , the system booted. But i want the system to be booted with that service.
            – Rebel
            Nov 27 at 8:53










          • ssh-keys.service could be something that is supposed to run only once, the first time the system is booted after installation, to initialize the SSH host keys. Or it might be something specific to your Linux distribution: it does not appear in any release of Debian I know of, not even the current unstable. What is the name of the distribution, by the way?
            – telcoM
            Nov 27 at 9:10














          up vote
          1
          down vote













          dpkg-reconfigure openssh-server should not routinely run at every boot. It probably runs because some update procedure was interrupted. Verify that your system disk is not 100% full.



          You should then run sudo dpkg-reconfigure openssh-server or equivalent manually, and allow it to run to completion. If it produces any error messages, troubleshoot those errors.



          When the command completes successfully, it should automatically make a record in the package management database that the openssh-server package is now fully configured, and so it should no longer attempt to reconfigure it at every boot.






          share|improve this answer




















          • Its showing Creating SSH2 RSA key; this may take some time and after sometime it leaves the error message "Timedout waiting for dev-ttyMSM0 device. Dependency failed for serial getty on ttyMSM0'
            – Rebel
            Nov 27 at 3:57











          • OK, so the hardware is not a regular PC, but a Dragonboard or something similar - and it's trying (and failing) to do something with the first serial port, that is probably being used as the serial console. Probably attempting to gather some true randomness for key generation, I guess... I'd need to investigate further, but I'll need to do my day job first, so it may take a while.
            – telcoM
            Nov 27 at 8:32










          • Ok. For more info when i deleted the line "exec start=dpkg-reconfigure openssh-server " from ssh-keys.service , the system booted. But i want the system to be booted with that service.
            – Rebel
            Nov 27 at 8:53










          • ssh-keys.service could be something that is supposed to run only once, the first time the system is booted after installation, to initialize the SSH host keys. Or it might be something specific to your Linux distribution: it does not appear in any release of Debian I know of, not even the current unstable. What is the name of the distribution, by the way?
            – telcoM
            Nov 27 at 9:10












          up vote
          1
          down vote










          up vote
          1
          down vote









          dpkg-reconfigure openssh-server should not routinely run at every boot. It probably runs because some update procedure was interrupted. Verify that your system disk is not 100% full.



          You should then run sudo dpkg-reconfigure openssh-server or equivalent manually, and allow it to run to completion. If it produces any error messages, troubleshoot those errors.



          When the command completes successfully, it should automatically make a record in the package management database that the openssh-server package is now fully configured, and so it should no longer attempt to reconfigure it at every boot.






          share|improve this answer












          dpkg-reconfigure openssh-server should not routinely run at every boot. It probably runs because some update procedure was interrupted. Verify that your system disk is not 100% full.



          You should then run sudo dpkg-reconfigure openssh-server or equivalent manually, and allow it to run to completion. If it produces any error messages, troubleshoot those errors.



          When the command completes successfully, it should automatically make a record in the package management database that the openssh-server package is now fully configured, and so it should no longer attempt to reconfigure it at every boot.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 26 at 10:34









          telcoM

          14.9k12143




          14.9k12143











          • Its showing Creating SSH2 RSA key; this may take some time and after sometime it leaves the error message "Timedout waiting for dev-ttyMSM0 device. Dependency failed for serial getty on ttyMSM0'
            – Rebel
            Nov 27 at 3:57











          • OK, so the hardware is not a regular PC, but a Dragonboard or something similar - and it's trying (and failing) to do something with the first serial port, that is probably being used as the serial console. Probably attempting to gather some true randomness for key generation, I guess... I'd need to investigate further, but I'll need to do my day job first, so it may take a while.
            – telcoM
            Nov 27 at 8:32










          • Ok. For more info when i deleted the line "exec start=dpkg-reconfigure openssh-server " from ssh-keys.service , the system booted. But i want the system to be booted with that service.
            – Rebel
            Nov 27 at 8:53










          • ssh-keys.service could be something that is supposed to run only once, the first time the system is booted after installation, to initialize the SSH host keys. Or it might be something specific to your Linux distribution: it does not appear in any release of Debian I know of, not even the current unstable. What is the name of the distribution, by the way?
            – telcoM
            Nov 27 at 9:10
















          • Its showing Creating SSH2 RSA key; this may take some time and after sometime it leaves the error message "Timedout waiting for dev-ttyMSM0 device. Dependency failed for serial getty on ttyMSM0'
            – Rebel
            Nov 27 at 3:57











          • OK, so the hardware is not a regular PC, but a Dragonboard or something similar - and it's trying (and failing) to do something with the first serial port, that is probably being used as the serial console. Probably attempting to gather some true randomness for key generation, I guess... I'd need to investigate further, but I'll need to do my day job first, so it may take a while.
            – telcoM
            Nov 27 at 8:32










          • Ok. For more info when i deleted the line "exec start=dpkg-reconfigure openssh-server " from ssh-keys.service , the system booted. But i want the system to be booted with that service.
            – Rebel
            Nov 27 at 8:53










          • ssh-keys.service could be something that is supposed to run only once, the first time the system is booted after installation, to initialize the SSH host keys. Or it might be something specific to your Linux distribution: it does not appear in any release of Debian I know of, not even the current unstable. What is the name of the distribution, by the way?
            – telcoM
            Nov 27 at 9:10















          Its showing Creating SSH2 RSA key; this may take some time and after sometime it leaves the error message "Timedout waiting for dev-ttyMSM0 device. Dependency failed for serial getty on ttyMSM0'
          – Rebel
          Nov 27 at 3:57





          Its showing Creating SSH2 RSA key; this may take some time and after sometime it leaves the error message "Timedout waiting for dev-ttyMSM0 device. Dependency failed for serial getty on ttyMSM0'
          – Rebel
          Nov 27 at 3:57













          OK, so the hardware is not a regular PC, but a Dragonboard or something similar - and it's trying (and failing) to do something with the first serial port, that is probably being used as the serial console. Probably attempting to gather some true randomness for key generation, I guess... I'd need to investigate further, but I'll need to do my day job first, so it may take a while.
          – telcoM
          Nov 27 at 8:32




          OK, so the hardware is not a regular PC, but a Dragonboard or something similar - and it's trying (and failing) to do something with the first serial port, that is probably being used as the serial console. Probably attempting to gather some true randomness for key generation, I guess... I'd need to investigate further, but I'll need to do my day job first, so it may take a while.
          – telcoM
          Nov 27 at 8:32












          Ok. For more info when i deleted the line "exec start=dpkg-reconfigure openssh-server " from ssh-keys.service , the system booted. But i want the system to be booted with that service.
          – Rebel
          Nov 27 at 8:53




          Ok. For more info when i deleted the line "exec start=dpkg-reconfigure openssh-server " from ssh-keys.service , the system booted. But i want the system to be booted with that service.
          – Rebel
          Nov 27 at 8:53












          ssh-keys.service could be something that is supposed to run only once, the first time the system is booted after installation, to initialize the SSH host keys. Or it might be something specific to your Linux distribution: it does not appear in any release of Debian I know of, not even the current unstable. What is the name of the distribution, by the way?
          – telcoM
          Nov 27 at 9:10




          ssh-keys.service could be something that is supposed to run only once, the first time the system is booted after installation, to initialize the SSH host keys. Or it might be something specific to your Linux distribution: it does not appear in any release of Debian I know of, not even the current unstable. What is the name of the distribution, by the way?
          – telcoM
          Nov 27 at 9:10

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f484157%2fdpkg-reconfigure-openssh-server-fails-on-boot%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown






          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay