Getting “System error 1067” when installing OpenSSH on Windows 7 machine











up vote
1
down vote

favorite
1












I try to install this OpenSSH package on windows 7. I have followed these instruction and all passed succesfully.



I have looked into this answer but it is not clear what exactly was done to solve the problem.



I had a problem where I couldn't generate a key with



C:Program FilesOpenSSH-Win32>.ssh-keygen.exe -A
ssh-keygen: generating new host keys: RSA Could not save your public key in __PR
OGRAMDATA__\ssh/ssh_host_rsa_key.sxfSDOzypn: No such file or directory
ssh-keygen: generating new host keys: DSA Could not save your public key in __PR
OGRAMDATA__\ssh/ssh_host_dsa_key.juOzEtM1FK: No such file or directory
ssh-keygen: generating new host keys: ECDSA Could not save your public key in __
PROGRAMDATA__\ssh/ssh_host_ecdsa_key.GJzXzpQzfK: No such file or directory
ssh-keygen: generating new host keys: ED25519 Could not save your public key in
__PROGRAMDATA__\ssh/ssh_host_ed25519_key.R26XZMokWU: No such file or directory


the solution I found here. I had to create a folder in C:ProgramDatassh



my Windows OS is Windows 7 32bit and I am using OpenSSH-32bit



When I try this command



C:Program FilesOpenSSH>net start sshd


I get this error:



The SSHD service is starting. The SSHD service could not be started.

A system error has occurred.

System error 1067 has occurred.

The process terminated unexpectedly.


What could be the problem? Also, I don't see the sshd process in services.










share|improve this question




























    up vote
    1
    down vote

    favorite
    1












    I try to install this OpenSSH package on windows 7. I have followed these instruction and all passed succesfully.



    I have looked into this answer but it is not clear what exactly was done to solve the problem.



    I had a problem where I couldn't generate a key with



    C:Program FilesOpenSSH-Win32>.ssh-keygen.exe -A
    ssh-keygen: generating new host keys: RSA Could not save your public key in __PR
    OGRAMDATA__\ssh/ssh_host_rsa_key.sxfSDOzypn: No such file or directory
    ssh-keygen: generating new host keys: DSA Could not save your public key in __PR
    OGRAMDATA__\ssh/ssh_host_dsa_key.juOzEtM1FK: No such file or directory
    ssh-keygen: generating new host keys: ECDSA Could not save your public key in __
    PROGRAMDATA__\ssh/ssh_host_ecdsa_key.GJzXzpQzfK: No such file or directory
    ssh-keygen: generating new host keys: ED25519 Could not save your public key in
    __PROGRAMDATA__\ssh/ssh_host_ed25519_key.R26XZMokWU: No such file or directory


    the solution I found here. I had to create a folder in C:ProgramDatassh



    my Windows OS is Windows 7 32bit and I am using OpenSSH-32bit



    When I try this command



    C:Program FilesOpenSSH>net start sshd


    I get this error:



    The SSHD service is starting. The SSHD service could not be started.

    A system error has occurred.

    System error 1067 has occurred.

    The process terminated unexpectedly.


    What could be the problem? Also, I don't see the sshd process in services.










    share|improve this question


























      up vote
      1
      down vote

      favorite
      1









      up vote
      1
      down vote

      favorite
      1






      1





      I try to install this OpenSSH package on windows 7. I have followed these instruction and all passed succesfully.



      I have looked into this answer but it is not clear what exactly was done to solve the problem.



      I had a problem where I couldn't generate a key with



      C:Program FilesOpenSSH-Win32>.ssh-keygen.exe -A
      ssh-keygen: generating new host keys: RSA Could not save your public key in __PR
      OGRAMDATA__\ssh/ssh_host_rsa_key.sxfSDOzypn: No such file or directory
      ssh-keygen: generating new host keys: DSA Could not save your public key in __PR
      OGRAMDATA__\ssh/ssh_host_dsa_key.juOzEtM1FK: No such file or directory
      ssh-keygen: generating new host keys: ECDSA Could not save your public key in __
      PROGRAMDATA__\ssh/ssh_host_ecdsa_key.GJzXzpQzfK: No such file or directory
      ssh-keygen: generating new host keys: ED25519 Could not save your public key in
      __PROGRAMDATA__\ssh/ssh_host_ed25519_key.R26XZMokWU: No such file or directory


      the solution I found here. I had to create a folder in C:ProgramDatassh



      my Windows OS is Windows 7 32bit and I am using OpenSSH-32bit



      When I try this command



      C:Program FilesOpenSSH>net start sshd


      I get this error:



      The SSHD service is starting. The SSHD service could not be started.

      A system error has occurred.

      System error 1067 has occurred.

      The process terminated unexpectedly.


      What could be the problem? Also, I don't see the sshd process in services.










      share|improve this question















      I try to install this OpenSSH package on windows 7. I have followed these instruction and all passed succesfully.



      I have looked into this answer but it is not clear what exactly was done to solve the problem.



      I had a problem where I couldn't generate a key with



      C:Program FilesOpenSSH-Win32>.ssh-keygen.exe -A
      ssh-keygen: generating new host keys: RSA Could not save your public key in __PR
      OGRAMDATA__\ssh/ssh_host_rsa_key.sxfSDOzypn: No such file or directory
      ssh-keygen: generating new host keys: DSA Could not save your public key in __PR
      OGRAMDATA__\ssh/ssh_host_dsa_key.juOzEtM1FK: No such file or directory
      ssh-keygen: generating new host keys: ECDSA Could not save your public key in __
      PROGRAMDATA__\ssh/ssh_host_ecdsa_key.GJzXzpQzfK: No such file or directory
      ssh-keygen: generating new host keys: ED25519 Could not save your public key in
      __PROGRAMDATA__\ssh/ssh_host_ed25519_key.R26XZMokWU: No such file or directory


      the solution I found here. I had to create a folder in C:ProgramDatassh



      my Windows OS is Windows 7 32bit and I am using OpenSSH-32bit



      When I try this command



      C:Program FilesOpenSSH>net start sshd


      I get this error:



      The SSHD service is starting. The SSHD service could not be started.

      A system error has occurred.

      System error 1067 has occurred.

      The process terminated unexpectedly.


      What could be the problem? Also, I don't see the sshd process in services.







      windows-7 ssh openssh






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 19 at 21:57

























      asked Nov 19 at 18:53









      Valentyn

      195




      195






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          I think you have found the right instructions for installing OpenSSH and
          the right workaround.



          The missing piece described in the answer you found is that step #3 and
          all following steps must be run within the folder C:Program FilesOpenSSH.



          The cd command in that answer you found is just:



          cd "C:Program FilesOpenSSH"


          This same problem is described in the bug report
          Getting “System error 1067” when installing OpenSSH, where it is claimed that the cd was added to
          the installation instructions, although I cannot see any trace of it.



          (I cannot test because I don't use OpenSSH, but hope that this will help in solving the problem.)





          Your problem might be the same as described in the bug report
          .ssh-keygen -A is broken, cannot make host keys,
          where the solution was:




          you must manually go to C:ProgramData and create a folder named ssh




          There is just this inconsistency that the developer in that bug report claims
          that starting the service will create this folder, which doesn't
          happen in your case.



          There is also the question of what is your operating system.
          If it's 64-bit Windows, you should have installed the 64-bit version,
          and the installation folder would have been C:Program FilesOpenSSH-Win64.
          And are you executing everything inside a PowerShell session?





          Note that for Windows 10, OpenSSH is directly available as an optional feature
          which might work better than a third-party package.



          Go to Settings > Apps > Manage optional features and add "OpenSSH client".
          It installs to C:WindowsSystem32OpenSSH (and is added to PATH).
          Uninstall first your version.






          share|improve this answer























          • I did run net start sshd in the C:/Program Files/OpenSSH. I just have edited my question to provide clarity.
            – Valentyn
            Nov 19 at 20:42












          • I added another possibility.
            – harrymc
            Nov 19 at 21:44










          • I have created C:ProgramDatassh folder to solve another problem and I am using OpenSSH-32bit for 32bit Windows 7 OS.
            – Valentyn
            Nov 19 at 21:58










          • Did creating the folder change anything with the service start?
            – harrymc
            Nov 19 at 22:37










          • I have done all of those things before as the instructions told me. It seems I have done everything correctly but it doesn't work.
            – Valentyn
            Nov 19 at 23:00











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          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%2fsuperuser.com%2fquestions%2f1376767%2fgetting-system-error-1067-when-installing-openssh-on-windows-7-machine%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



          accepted










          I think you have found the right instructions for installing OpenSSH and
          the right workaround.



          The missing piece described in the answer you found is that step #3 and
          all following steps must be run within the folder C:Program FilesOpenSSH.



          The cd command in that answer you found is just:



          cd "C:Program FilesOpenSSH"


          This same problem is described in the bug report
          Getting “System error 1067” when installing OpenSSH, where it is claimed that the cd was added to
          the installation instructions, although I cannot see any trace of it.



          (I cannot test because I don't use OpenSSH, but hope that this will help in solving the problem.)





          Your problem might be the same as described in the bug report
          .ssh-keygen -A is broken, cannot make host keys,
          where the solution was:




          you must manually go to C:ProgramData and create a folder named ssh




          There is just this inconsistency that the developer in that bug report claims
          that starting the service will create this folder, which doesn't
          happen in your case.



          There is also the question of what is your operating system.
          If it's 64-bit Windows, you should have installed the 64-bit version,
          and the installation folder would have been C:Program FilesOpenSSH-Win64.
          And are you executing everything inside a PowerShell session?





          Note that for Windows 10, OpenSSH is directly available as an optional feature
          which might work better than a third-party package.



          Go to Settings > Apps > Manage optional features and add "OpenSSH client".
          It installs to C:WindowsSystem32OpenSSH (and is added to PATH).
          Uninstall first your version.






          share|improve this answer























          • I did run net start sshd in the C:/Program Files/OpenSSH. I just have edited my question to provide clarity.
            – Valentyn
            Nov 19 at 20:42












          • I added another possibility.
            – harrymc
            Nov 19 at 21:44










          • I have created C:ProgramDatassh folder to solve another problem and I am using OpenSSH-32bit for 32bit Windows 7 OS.
            – Valentyn
            Nov 19 at 21:58










          • Did creating the folder change anything with the service start?
            – harrymc
            Nov 19 at 22:37










          • I have done all of those things before as the instructions told me. It seems I have done everything correctly but it doesn't work.
            – Valentyn
            Nov 19 at 23:00















          up vote
          1
          down vote



          accepted










          I think you have found the right instructions for installing OpenSSH and
          the right workaround.



          The missing piece described in the answer you found is that step #3 and
          all following steps must be run within the folder C:Program FilesOpenSSH.



          The cd command in that answer you found is just:



          cd "C:Program FilesOpenSSH"


          This same problem is described in the bug report
          Getting “System error 1067” when installing OpenSSH, where it is claimed that the cd was added to
          the installation instructions, although I cannot see any trace of it.



          (I cannot test because I don't use OpenSSH, but hope that this will help in solving the problem.)





          Your problem might be the same as described in the bug report
          .ssh-keygen -A is broken, cannot make host keys,
          where the solution was:




          you must manually go to C:ProgramData and create a folder named ssh




          There is just this inconsistency that the developer in that bug report claims
          that starting the service will create this folder, which doesn't
          happen in your case.



          There is also the question of what is your operating system.
          If it's 64-bit Windows, you should have installed the 64-bit version,
          and the installation folder would have been C:Program FilesOpenSSH-Win64.
          And are you executing everything inside a PowerShell session?





          Note that for Windows 10, OpenSSH is directly available as an optional feature
          which might work better than a third-party package.



          Go to Settings > Apps > Manage optional features and add "OpenSSH client".
          It installs to C:WindowsSystem32OpenSSH (and is added to PATH).
          Uninstall first your version.






          share|improve this answer























          • I did run net start sshd in the C:/Program Files/OpenSSH. I just have edited my question to provide clarity.
            – Valentyn
            Nov 19 at 20:42












          • I added another possibility.
            – harrymc
            Nov 19 at 21:44










          • I have created C:ProgramDatassh folder to solve another problem and I am using OpenSSH-32bit for 32bit Windows 7 OS.
            – Valentyn
            Nov 19 at 21:58










          • Did creating the folder change anything with the service start?
            – harrymc
            Nov 19 at 22:37










          • I have done all of those things before as the instructions told me. It seems I have done everything correctly but it doesn't work.
            – Valentyn
            Nov 19 at 23:00













          up vote
          1
          down vote



          accepted







          up vote
          1
          down vote



          accepted






          I think you have found the right instructions for installing OpenSSH and
          the right workaround.



          The missing piece described in the answer you found is that step #3 and
          all following steps must be run within the folder C:Program FilesOpenSSH.



          The cd command in that answer you found is just:



          cd "C:Program FilesOpenSSH"


          This same problem is described in the bug report
          Getting “System error 1067” when installing OpenSSH, where it is claimed that the cd was added to
          the installation instructions, although I cannot see any trace of it.



          (I cannot test because I don't use OpenSSH, but hope that this will help in solving the problem.)





          Your problem might be the same as described in the bug report
          .ssh-keygen -A is broken, cannot make host keys,
          where the solution was:




          you must manually go to C:ProgramData and create a folder named ssh




          There is just this inconsistency that the developer in that bug report claims
          that starting the service will create this folder, which doesn't
          happen in your case.



          There is also the question of what is your operating system.
          If it's 64-bit Windows, you should have installed the 64-bit version,
          and the installation folder would have been C:Program FilesOpenSSH-Win64.
          And are you executing everything inside a PowerShell session?





          Note that for Windows 10, OpenSSH is directly available as an optional feature
          which might work better than a third-party package.



          Go to Settings > Apps > Manage optional features and add "OpenSSH client".
          It installs to C:WindowsSystem32OpenSSH (and is added to PATH).
          Uninstall first your version.






          share|improve this answer














          I think you have found the right instructions for installing OpenSSH and
          the right workaround.



          The missing piece described in the answer you found is that step #3 and
          all following steps must be run within the folder C:Program FilesOpenSSH.



          The cd command in that answer you found is just:



          cd "C:Program FilesOpenSSH"


          This same problem is described in the bug report
          Getting “System error 1067” when installing OpenSSH, where it is claimed that the cd was added to
          the installation instructions, although I cannot see any trace of it.



          (I cannot test because I don't use OpenSSH, but hope that this will help in solving the problem.)





          Your problem might be the same as described in the bug report
          .ssh-keygen -A is broken, cannot make host keys,
          where the solution was:




          you must manually go to C:ProgramData and create a folder named ssh




          There is just this inconsistency that the developer in that bug report claims
          that starting the service will create this folder, which doesn't
          happen in your case.



          There is also the question of what is your operating system.
          If it's 64-bit Windows, you should have installed the 64-bit version,
          and the installation folder would have been C:Program FilesOpenSSH-Win64.
          And are you executing everything inside a PowerShell session?





          Note that for Windows 10, OpenSSH is directly available as an optional feature
          which might work better than a third-party package.



          Go to Settings > Apps > Manage optional features and add "OpenSSH client".
          It installs to C:WindowsSystem32OpenSSH (and is added to PATH).
          Uninstall first your version.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited yesterday

























          answered Nov 19 at 20:05









          harrymc

          248k10257546




          248k10257546












          • I did run net start sshd in the C:/Program Files/OpenSSH. I just have edited my question to provide clarity.
            – Valentyn
            Nov 19 at 20:42












          • I added another possibility.
            – harrymc
            Nov 19 at 21:44










          • I have created C:ProgramDatassh folder to solve another problem and I am using OpenSSH-32bit for 32bit Windows 7 OS.
            – Valentyn
            Nov 19 at 21:58










          • Did creating the folder change anything with the service start?
            – harrymc
            Nov 19 at 22:37










          • I have done all of those things before as the instructions told me. It seems I have done everything correctly but it doesn't work.
            – Valentyn
            Nov 19 at 23:00


















          • I did run net start sshd in the C:/Program Files/OpenSSH. I just have edited my question to provide clarity.
            – Valentyn
            Nov 19 at 20:42












          • I added another possibility.
            – harrymc
            Nov 19 at 21:44










          • I have created C:ProgramDatassh folder to solve another problem and I am using OpenSSH-32bit for 32bit Windows 7 OS.
            – Valentyn
            Nov 19 at 21:58










          • Did creating the folder change anything with the service start?
            – harrymc
            Nov 19 at 22:37










          • I have done all of those things before as the instructions told me. It seems I have done everything correctly but it doesn't work.
            – Valentyn
            Nov 19 at 23:00
















          I did run net start sshd in the C:/Program Files/OpenSSH. I just have edited my question to provide clarity.
          – Valentyn
          Nov 19 at 20:42






          I did run net start sshd in the C:/Program Files/OpenSSH. I just have edited my question to provide clarity.
          – Valentyn
          Nov 19 at 20:42














          I added another possibility.
          – harrymc
          Nov 19 at 21:44




          I added another possibility.
          – harrymc
          Nov 19 at 21:44












          I have created C:ProgramDatassh folder to solve another problem and I am using OpenSSH-32bit for 32bit Windows 7 OS.
          – Valentyn
          Nov 19 at 21:58




          I have created C:ProgramDatassh folder to solve another problem and I am using OpenSSH-32bit for 32bit Windows 7 OS.
          – Valentyn
          Nov 19 at 21:58












          Did creating the folder change anything with the service start?
          – harrymc
          Nov 19 at 22:37




          Did creating the folder change anything with the service start?
          – harrymc
          Nov 19 at 22:37












          I have done all of those things before as the instructions told me. It seems I have done everything correctly but it doesn't work.
          – Valentyn
          Nov 19 at 23:00




          I have done all of those things before as the instructions told me. It seems I have done everything correctly but it doesn't work.
          – Valentyn
          Nov 19 at 23:00


















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1376767%2fgetting-system-error-1067-when-installing-openssh-on-windows-7-machine%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 do I know what Microsoft account the skydrive app is syncing to?

          Grease: Live!

          When does type information flow backwards in C++?