Getting “System error 1067” when installing OpenSSH











up vote
3
down vote

favorite












I try to install this OpenSSH package on windows Server 2008 R2.
I applied all steps (except the firewall one) and all passed succesfully.



When I try this command




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?
I couldn't find any log file.
The Security in Windows' Event Viewer only says:



The SSHD service terminated unexpectedly.  It has done this 2 time(s).


When running in debug mode I get this:



--



debug2: load_server_config: filename C:UsersAdministratorDownloadsOpenSSH-Win32OpenSSH-Win32/sshd_config

debug2: parse_server_config: config C:UsersAdministratorDownloadsOpenSSH-Win32OpenSSH-Win32/sshd_config len 256

debug3: C:UsersAdministratorDownloadsOpenSSH-Win32OpenSSH-Win32/sshd_config:50 setting AuthorizedKeysFile .ssh/authorized_keys

debug3: C:UsersAdministratorDownloadsOpenSSH-Win32OpenSSH-Win32/sshd_config:115 setting Subsystem sftp /usr/libexec/sftp-server

debug3: C:UsersAdministratorDownloadsOpenSSH-Win32OpenSSH-Win32/sshd_config:123 setting PubkeyAcceptedKeyTypes +ssh-dss,ecdsa-sha2-nistp256

debug1: sshd version OpenSSH_7.1, OpenSSL 1.0.2d 9 Jul 2015

[Build Nov 9 2015 22:18:33]

debug3: getpwnam: username [sshd]

debug3: getpwnam: system dir [C:Windowssystem32]

debug3: getpwnam: shell path [C:Windowssystem32cmd.exe]

debug1: _open() returned error, errno [2]

debug1: key_load_private: No such file or directory

debug1: _open() returned error, errno [2]

debug1: key_load_public: No such file or directory

Could not load host key: ssh_host_rsa_key

debug1: _open() returned error, errno [2]

debug1: key_load_private: No such file or directory

debug1: _open() returned error, errno [2]

debug1: key_load_public: No such file or directory

Could not load host key: ssh_host_dsa_key

debug1: _open() returned error, errno [2]

debug1: key_load_private: No such file or directory

debug1: _open() returned error, errno [2]

debug1: key_load_public: No such file or directory

Could not load host key: ssh_host_ecdsa_key

debug1: _open() returned error, errno [2]

debug1: key_load_private: No such file or directory

debug1: _open() returned error, errno [2]

debug1: key_load_public: No such file or directory

Could not load host key: ssh_host_ed25519_key

Disabling protocol version 2. Could not load host key

sshd: no hostkeys available -- exiting.


--



You can see more details on the XML below.



Note:




  • I skipped the Firewall step since the firewall is not running.

  • It seems that I generated the keys successfully (I got no errors and I see two files in C:UsersAdministrator.ssh folder: id_rsa and id_rsa.pub - see the output below)

  • There's no antivirus installed on this host

  • I tried to install both 32bit and 64bit packages (same error on
    both).

  • My machine is 64bit running on VMware.

  • I installed it as an administrator using "local system account"


These are the XML details from the Event Viewer:



Log Name:      System
Source: Service Control Manager
Date: 12/25/2015 12:17:53 PM
Event ID: 7034
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: WINSXXX
Description:
The SSHD service terminated unexpectedly. It has done this 2 time(s).
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Service Control Manager" Guid="{555908d1-a6d7-4695-8e1e-26931d2012f4}" EventSourceName="Service Control Manager" />
<EventID Qualifiers="49152">7034</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x8080000000000000</Keywords>
<TimeCreated SystemTime="2015-12-25T10:17:53.073482000Z" />
<EventRecordID>20007</EventRecordID>
<Correlation />
<Execution ProcessID="468" ThreadID="4180" />
<Channel>System</Channel>
<Computer>WINSXXX</Computer>
<Security />
</System>
<EventData>
<Data Name="param1">SSHD</Data>
<Data Name="param2">2</Data>
</EventData>
</Event>


Output of generating keys:



C:UsersAdministrator>C:UsersAdministratorDownloadsOpenSSH-Win32OpenSSH-Win32ssh-keygen.exe
Generating public/private rsa key pair.
Enter file in which to save the key (C:UsersAdministrator/.ssh/id_rsa):
C:UsersAdministrator/.ssh/id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in C:UsersAdministrator/.ssh/id_rsa.
Your public key has been saved in C:UsersAdministrator/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:POHEtRE0YZGfFqcxjkt8x9znhJsm+MvCuhFCUR9bYxg Administrator@WINSXXX
The key's randomart image is:
+---[RSA 2048]----+
| ....EB+ |
| o +oO+.. |
| . +.++ X o |
| . + .+ B = +|
| . S. = . =.|
| . oo . + .|
| .. . o |
| .o.. |
| oo .o. |
+----[SHA256]-----+


C:UsersAdministrator>










share|improve this question
























  • try to run the server in debug mode from command-line. Use the -Dddd switches to follow the log and see where does it fail and why.
    – Jakuje
    Dec 25 '15 at 10:34










  • Thanks. How do you do it? What's the full syntax? Can't find this switch
    – mosh
    Dec 25 '15 at 10:39










  • I would tell you on Unix, but I have no idea where is it installed on Windows. Trying sshd.exe -Dddd or /path/to/sshd.exe -Ddd or some derivatives should do the job.
    – Jakuje
    Dec 25 '15 at 10:42










  • Thanks. I got you and it's working. I'm now updating the text of the question with the debug output
    – mosh
    Dec 25 '15 at 10:45










  • The failure is obvious. It can not load host keys. Did you generate them in the appropriate directory?
    – Jakuje
    Dec 25 '15 at 10:50















up vote
3
down vote

favorite












I try to install this OpenSSH package on windows Server 2008 R2.
I applied all steps (except the firewall one) and all passed succesfully.



When I try this command




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?
I couldn't find any log file.
The Security in Windows' Event Viewer only says:



The SSHD service terminated unexpectedly.  It has done this 2 time(s).


When running in debug mode I get this:



--



debug2: load_server_config: filename C:UsersAdministratorDownloadsOpenSSH-Win32OpenSSH-Win32/sshd_config

debug2: parse_server_config: config C:UsersAdministratorDownloadsOpenSSH-Win32OpenSSH-Win32/sshd_config len 256

debug3: C:UsersAdministratorDownloadsOpenSSH-Win32OpenSSH-Win32/sshd_config:50 setting AuthorizedKeysFile .ssh/authorized_keys

debug3: C:UsersAdministratorDownloadsOpenSSH-Win32OpenSSH-Win32/sshd_config:115 setting Subsystem sftp /usr/libexec/sftp-server

debug3: C:UsersAdministratorDownloadsOpenSSH-Win32OpenSSH-Win32/sshd_config:123 setting PubkeyAcceptedKeyTypes +ssh-dss,ecdsa-sha2-nistp256

debug1: sshd version OpenSSH_7.1, OpenSSL 1.0.2d 9 Jul 2015

[Build Nov 9 2015 22:18:33]

debug3: getpwnam: username [sshd]

debug3: getpwnam: system dir [C:Windowssystem32]

debug3: getpwnam: shell path [C:Windowssystem32cmd.exe]

debug1: _open() returned error, errno [2]

debug1: key_load_private: No such file or directory

debug1: _open() returned error, errno [2]

debug1: key_load_public: No such file or directory

Could not load host key: ssh_host_rsa_key

debug1: _open() returned error, errno [2]

debug1: key_load_private: No such file or directory

debug1: _open() returned error, errno [2]

debug1: key_load_public: No such file or directory

Could not load host key: ssh_host_dsa_key

debug1: _open() returned error, errno [2]

debug1: key_load_private: No such file or directory

debug1: _open() returned error, errno [2]

debug1: key_load_public: No such file or directory

Could not load host key: ssh_host_ecdsa_key

debug1: _open() returned error, errno [2]

debug1: key_load_private: No such file or directory

debug1: _open() returned error, errno [2]

debug1: key_load_public: No such file or directory

Could not load host key: ssh_host_ed25519_key

Disabling protocol version 2. Could not load host key

sshd: no hostkeys available -- exiting.


--



You can see more details on the XML below.



Note:




  • I skipped the Firewall step since the firewall is not running.

  • It seems that I generated the keys successfully (I got no errors and I see two files in C:UsersAdministrator.ssh folder: id_rsa and id_rsa.pub - see the output below)

  • There's no antivirus installed on this host

  • I tried to install both 32bit and 64bit packages (same error on
    both).

  • My machine is 64bit running on VMware.

  • I installed it as an administrator using "local system account"


These are the XML details from the Event Viewer:



Log Name:      System
Source: Service Control Manager
Date: 12/25/2015 12:17:53 PM
Event ID: 7034
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: WINSXXX
Description:
The SSHD service terminated unexpectedly. It has done this 2 time(s).
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Service Control Manager" Guid="{555908d1-a6d7-4695-8e1e-26931d2012f4}" EventSourceName="Service Control Manager" />
<EventID Qualifiers="49152">7034</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x8080000000000000</Keywords>
<TimeCreated SystemTime="2015-12-25T10:17:53.073482000Z" />
<EventRecordID>20007</EventRecordID>
<Correlation />
<Execution ProcessID="468" ThreadID="4180" />
<Channel>System</Channel>
<Computer>WINSXXX</Computer>
<Security />
</System>
<EventData>
<Data Name="param1">SSHD</Data>
<Data Name="param2">2</Data>
</EventData>
</Event>


Output of generating keys:



C:UsersAdministrator>C:UsersAdministratorDownloadsOpenSSH-Win32OpenSSH-Win32ssh-keygen.exe
Generating public/private rsa key pair.
Enter file in which to save the key (C:UsersAdministrator/.ssh/id_rsa):
C:UsersAdministrator/.ssh/id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in C:UsersAdministrator/.ssh/id_rsa.
Your public key has been saved in C:UsersAdministrator/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:POHEtRE0YZGfFqcxjkt8x9znhJsm+MvCuhFCUR9bYxg Administrator@WINSXXX
The key's randomart image is:
+---[RSA 2048]----+
| ....EB+ |
| o +oO+.. |
| . +.++ X o |
| . + .+ B = +|
| . S. = . =.|
| . oo . + .|
| .. . o |
| .o.. |
| oo .o. |
+----[SHA256]-----+


C:UsersAdministrator>










share|improve this question
























  • try to run the server in debug mode from command-line. Use the -Dddd switches to follow the log and see where does it fail and why.
    – Jakuje
    Dec 25 '15 at 10:34










  • Thanks. How do you do it? What's the full syntax? Can't find this switch
    – mosh
    Dec 25 '15 at 10:39










  • I would tell you on Unix, but I have no idea where is it installed on Windows. Trying sshd.exe -Dddd or /path/to/sshd.exe -Ddd or some derivatives should do the job.
    – Jakuje
    Dec 25 '15 at 10:42










  • Thanks. I got you and it's working. I'm now updating the text of the question with the debug output
    – mosh
    Dec 25 '15 at 10:45










  • The failure is obvious. It can not load host keys. Did you generate them in the appropriate directory?
    – Jakuje
    Dec 25 '15 at 10:50













up vote
3
down vote

favorite









up vote
3
down vote

favorite











I try to install this OpenSSH package on windows Server 2008 R2.
I applied all steps (except the firewall one) and all passed succesfully.



When I try this command




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?
I couldn't find any log file.
The Security in Windows' Event Viewer only says:



The SSHD service terminated unexpectedly.  It has done this 2 time(s).


When running in debug mode I get this:



--



debug2: load_server_config: filename C:UsersAdministratorDownloadsOpenSSH-Win32OpenSSH-Win32/sshd_config

debug2: parse_server_config: config C:UsersAdministratorDownloadsOpenSSH-Win32OpenSSH-Win32/sshd_config len 256

debug3: C:UsersAdministratorDownloadsOpenSSH-Win32OpenSSH-Win32/sshd_config:50 setting AuthorizedKeysFile .ssh/authorized_keys

debug3: C:UsersAdministratorDownloadsOpenSSH-Win32OpenSSH-Win32/sshd_config:115 setting Subsystem sftp /usr/libexec/sftp-server

debug3: C:UsersAdministratorDownloadsOpenSSH-Win32OpenSSH-Win32/sshd_config:123 setting PubkeyAcceptedKeyTypes +ssh-dss,ecdsa-sha2-nistp256

debug1: sshd version OpenSSH_7.1, OpenSSL 1.0.2d 9 Jul 2015

[Build Nov 9 2015 22:18:33]

debug3: getpwnam: username [sshd]

debug3: getpwnam: system dir [C:Windowssystem32]

debug3: getpwnam: shell path [C:Windowssystem32cmd.exe]

debug1: _open() returned error, errno [2]

debug1: key_load_private: No such file or directory

debug1: _open() returned error, errno [2]

debug1: key_load_public: No such file or directory

Could not load host key: ssh_host_rsa_key

debug1: _open() returned error, errno [2]

debug1: key_load_private: No such file or directory

debug1: _open() returned error, errno [2]

debug1: key_load_public: No such file or directory

Could not load host key: ssh_host_dsa_key

debug1: _open() returned error, errno [2]

debug1: key_load_private: No such file or directory

debug1: _open() returned error, errno [2]

debug1: key_load_public: No such file or directory

Could not load host key: ssh_host_ecdsa_key

debug1: _open() returned error, errno [2]

debug1: key_load_private: No such file or directory

debug1: _open() returned error, errno [2]

debug1: key_load_public: No such file or directory

Could not load host key: ssh_host_ed25519_key

Disabling protocol version 2. Could not load host key

sshd: no hostkeys available -- exiting.


--



You can see more details on the XML below.



Note:




  • I skipped the Firewall step since the firewall is not running.

  • It seems that I generated the keys successfully (I got no errors and I see two files in C:UsersAdministrator.ssh folder: id_rsa and id_rsa.pub - see the output below)

  • There's no antivirus installed on this host

  • I tried to install both 32bit and 64bit packages (same error on
    both).

  • My machine is 64bit running on VMware.

  • I installed it as an administrator using "local system account"


These are the XML details from the Event Viewer:



Log Name:      System
Source: Service Control Manager
Date: 12/25/2015 12:17:53 PM
Event ID: 7034
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: WINSXXX
Description:
The SSHD service terminated unexpectedly. It has done this 2 time(s).
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Service Control Manager" Guid="{555908d1-a6d7-4695-8e1e-26931d2012f4}" EventSourceName="Service Control Manager" />
<EventID Qualifiers="49152">7034</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x8080000000000000</Keywords>
<TimeCreated SystemTime="2015-12-25T10:17:53.073482000Z" />
<EventRecordID>20007</EventRecordID>
<Correlation />
<Execution ProcessID="468" ThreadID="4180" />
<Channel>System</Channel>
<Computer>WINSXXX</Computer>
<Security />
</System>
<EventData>
<Data Name="param1">SSHD</Data>
<Data Name="param2">2</Data>
</EventData>
</Event>


Output of generating keys:



C:UsersAdministrator>C:UsersAdministratorDownloadsOpenSSH-Win32OpenSSH-Win32ssh-keygen.exe
Generating public/private rsa key pair.
Enter file in which to save the key (C:UsersAdministrator/.ssh/id_rsa):
C:UsersAdministrator/.ssh/id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in C:UsersAdministrator/.ssh/id_rsa.
Your public key has been saved in C:UsersAdministrator/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:POHEtRE0YZGfFqcxjkt8x9znhJsm+MvCuhFCUR9bYxg Administrator@WINSXXX
The key's randomart image is:
+---[RSA 2048]----+
| ....EB+ |
| o +oO+.. |
| . +.++ X o |
| . + .+ B = +|
| . S. = . =.|
| . oo . + .|
| .. . o |
| .o.. |
| oo .o. |
+----[SHA256]-----+


C:UsersAdministrator>










share|improve this question















I try to install this OpenSSH package on windows Server 2008 R2.
I applied all steps (except the firewall one) and all passed succesfully.



When I try this command




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?
I couldn't find any log file.
The Security in Windows' Event Viewer only says:



The SSHD service terminated unexpectedly.  It has done this 2 time(s).


When running in debug mode I get this:



--



debug2: load_server_config: filename C:UsersAdministratorDownloadsOpenSSH-Win32OpenSSH-Win32/sshd_config

debug2: parse_server_config: config C:UsersAdministratorDownloadsOpenSSH-Win32OpenSSH-Win32/sshd_config len 256

debug3: C:UsersAdministratorDownloadsOpenSSH-Win32OpenSSH-Win32/sshd_config:50 setting AuthorizedKeysFile .ssh/authorized_keys

debug3: C:UsersAdministratorDownloadsOpenSSH-Win32OpenSSH-Win32/sshd_config:115 setting Subsystem sftp /usr/libexec/sftp-server

debug3: C:UsersAdministratorDownloadsOpenSSH-Win32OpenSSH-Win32/sshd_config:123 setting PubkeyAcceptedKeyTypes +ssh-dss,ecdsa-sha2-nistp256

debug1: sshd version OpenSSH_7.1, OpenSSL 1.0.2d 9 Jul 2015

[Build Nov 9 2015 22:18:33]

debug3: getpwnam: username [sshd]

debug3: getpwnam: system dir [C:Windowssystem32]

debug3: getpwnam: shell path [C:Windowssystem32cmd.exe]

debug1: _open() returned error, errno [2]

debug1: key_load_private: No such file or directory

debug1: _open() returned error, errno [2]

debug1: key_load_public: No such file or directory

Could not load host key: ssh_host_rsa_key

debug1: _open() returned error, errno [2]

debug1: key_load_private: No such file or directory

debug1: _open() returned error, errno [2]

debug1: key_load_public: No such file or directory

Could not load host key: ssh_host_dsa_key

debug1: _open() returned error, errno [2]

debug1: key_load_private: No such file or directory

debug1: _open() returned error, errno [2]

debug1: key_load_public: No such file or directory

Could not load host key: ssh_host_ecdsa_key

debug1: _open() returned error, errno [2]

debug1: key_load_private: No such file or directory

debug1: _open() returned error, errno [2]

debug1: key_load_public: No such file or directory

Could not load host key: ssh_host_ed25519_key

Disabling protocol version 2. Could not load host key

sshd: no hostkeys available -- exiting.


--



You can see more details on the XML below.



Note:




  • I skipped the Firewall step since the firewall is not running.

  • It seems that I generated the keys successfully (I got no errors and I see two files in C:UsersAdministrator.ssh folder: id_rsa and id_rsa.pub - see the output below)

  • There's no antivirus installed on this host

  • I tried to install both 32bit and 64bit packages (same error on
    both).

  • My machine is 64bit running on VMware.

  • I installed it as an administrator using "local system account"


These are the XML details from the Event Viewer:



Log Name:      System
Source: Service Control Manager
Date: 12/25/2015 12:17:53 PM
Event ID: 7034
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: WINSXXX
Description:
The SSHD service terminated unexpectedly. It has done this 2 time(s).
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Service Control Manager" Guid="{555908d1-a6d7-4695-8e1e-26931d2012f4}" EventSourceName="Service Control Manager" />
<EventID Qualifiers="49152">7034</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x8080000000000000</Keywords>
<TimeCreated SystemTime="2015-12-25T10:17:53.073482000Z" />
<EventRecordID>20007</EventRecordID>
<Correlation />
<Execution ProcessID="468" ThreadID="4180" />
<Channel>System</Channel>
<Computer>WINSXXX</Computer>
<Security />
</System>
<EventData>
<Data Name="param1">SSHD</Data>
<Data Name="param2">2</Data>
</EventData>
</Event>


Output of generating keys:



C:UsersAdministrator>C:UsersAdministratorDownloadsOpenSSH-Win32OpenSSH-Win32ssh-keygen.exe
Generating public/private rsa key pair.
Enter file in which to save the key (C:UsersAdministrator/.ssh/id_rsa):
C:UsersAdministrator/.ssh/id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in C:UsersAdministrator/.ssh/id_rsa.
Your public key has been saved in C:UsersAdministrator/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:POHEtRE0YZGfFqcxjkt8x9znhJsm+MvCuhFCUR9bYxg Administrator@WINSXXX
The key's randomart image is:
+---[RSA 2048]----+
| ....EB+ |
| o +oO+.. |
| . +.++ X o |
| . + .+ B = +|
| . S. = . =.|
| . oo . + .|
| .. . o |
| .o.. |
| oo .o. |
+----[SHA256]-----+


C:UsersAdministrator>







windows windows-server-2008 windows-server-2008-r2 openssh






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 25 '15 at 10:57

























asked Dec 25 '15 at 10:21









mosh

1652414




1652414












  • try to run the server in debug mode from command-line. Use the -Dddd switches to follow the log and see where does it fail and why.
    – Jakuje
    Dec 25 '15 at 10:34










  • Thanks. How do you do it? What's the full syntax? Can't find this switch
    – mosh
    Dec 25 '15 at 10:39










  • I would tell you on Unix, but I have no idea where is it installed on Windows. Trying sshd.exe -Dddd or /path/to/sshd.exe -Ddd or some derivatives should do the job.
    – Jakuje
    Dec 25 '15 at 10:42










  • Thanks. I got you and it's working. I'm now updating the text of the question with the debug output
    – mosh
    Dec 25 '15 at 10:45










  • The failure is obvious. It can not load host keys. Did you generate them in the appropriate directory?
    – Jakuje
    Dec 25 '15 at 10:50


















  • try to run the server in debug mode from command-line. Use the -Dddd switches to follow the log and see where does it fail and why.
    – Jakuje
    Dec 25 '15 at 10:34










  • Thanks. How do you do it? What's the full syntax? Can't find this switch
    – mosh
    Dec 25 '15 at 10:39










  • I would tell you on Unix, but I have no idea where is it installed on Windows. Trying sshd.exe -Dddd or /path/to/sshd.exe -Ddd or some derivatives should do the job.
    – Jakuje
    Dec 25 '15 at 10:42










  • Thanks. I got you and it's working. I'm now updating the text of the question with the debug output
    – mosh
    Dec 25 '15 at 10:45










  • The failure is obvious. It can not load host keys. Did you generate them in the appropriate directory?
    – Jakuje
    Dec 25 '15 at 10:50
















try to run the server in debug mode from command-line. Use the -Dddd switches to follow the log and see where does it fail and why.
– Jakuje
Dec 25 '15 at 10:34




try to run the server in debug mode from command-line. Use the -Dddd switches to follow the log and see where does it fail and why.
– Jakuje
Dec 25 '15 at 10:34












Thanks. How do you do it? What's the full syntax? Can't find this switch
– mosh
Dec 25 '15 at 10:39




Thanks. How do you do it? What's the full syntax? Can't find this switch
– mosh
Dec 25 '15 at 10:39












I would tell you on Unix, but I have no idea where is it installed on Windows. Trying sshd.exe -Dddd or /path/to/sshd.exe -Ddd or some derivatives should do the job.
– Jakuje
Dec 25 '15 at 10:42




I would tell you on Unix, but I have no idea where is it installed on Windows. Trying sshd.exe -Dddd or /path/to/sshd.exe -Ddd or some derivatives should do the job.
– Jakuje
Dec 25 '15 at 10:42












Thanks. I got you and it's working. I'm now updating the text of the question with the debug output
– mosh
Dec 25 '15 at 10:45




Thanks. I got you and it's working. I'm now updating the text of the question with the debug output
– mosh
Dec 25 '15 at 10:45












The failure is obvious. It can not load host keys. Did you generate them in the appropriate directory?
– Jakuje
Dec 25 '15 at 10:50




The failure is obvious. It can not load host keys. Did you generate them in the appropriate directory?
– Jakuje
Dec 25 '15 at 10:50










2 Answers
2






active

oldest

votes

















up vote
2
down vote













I could finally resolve it.



The keys were not generated on the relevant folder.



If you follow these instructions, you have to change directory to relevant folder before applying step #3.






share|improve this answer























  • yes, the key generation was described in different way than you wrote. Anyhow great to have it solved.
    – Jakuje
    Dec 25 '15 at 15:26






  • 2




    What is the "relevant folder"? What command are you running in this folder?
    – kojow7
    Feb 26 at 20:21


















up vote
0
down vote













I was able to start the sshd service after following steps 5 and 6 in the instructions






  1. Setup SSH host keys (this will generate all the 'host' keys that sshd
    expects when its starts)




    • .ssh-keygen.exe -A




  2. Secure SSH host keys (optional)




    • Start-Service ssh-agent

    • download psexec here

    • launch cmd.exe as SYSTEM - psexec.exe -i -s cmd.exe

    • register host keys in above cmd.exe

    • ssh-add ssh_host_dsa_key

    • ssh-add ssh_host_rsa_key

    • ssh-add ssh_host_ecdsa_key

    • ssh-add ssh_host_ed25519_key









share|improve this answer























    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%2f1017865%2fgetting-system-error-1067-when-installing-openssh%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    2
    down vote













    I could finally resolve it.



    The keys were not generated on the relevant folder.



    If you follow these instructions, you have to change directory to relevant folder before applying step #3.






    share|improve this answer























    • yes, the key generation was described in different way than you wrote. Anyhow great to have it solved.
      – Jakuje
      Dec 25 '15 at 15:26






    • 2




      What is the "relevant folder"? What command are you running in this folder?
      – kojow7
      Feb 26 at 20:21















    up vote
    2
    down vote













    I could finally resolve it.



    The keys were not generated on the relevant folder.



    If you follow these instructions, you have to change directory to relevant folder before applying step #3.






    share|improve this answer























    • yes, the key generation was described in different way than you wrote. Anyhow great to have it solved.
      – Jakuje
      Dec 25 '15 at 15:26






    • 2




      What is the "relevant folder"? What command are you running in this folder?
      – kojow7
      Feb 26 at 20:21













    up vote
    2
    down vote










    up vote
    2
    down vote









    I could finally resolve it.



    The keys were not generated on the relevant folder.



    If you follow these instructions, you have to change directory to relevant folder before applying step #3.






    share|improve this answer














    I could finally resolve it.



    The keys were not generated on the relevant folder.



    If you follow these instructions, you have to change directory to relevant folder before applying step #3.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Feb 23 '17 at 4:28









    Josh

    1074




    1074










    answered Dec 25 '15 at 11:44









    mosh

    1652414




    1652414












    • yes, the key generation was described in different way than you wrote. Anyhow great to have it solved.
      – Jakuje
      Dec 25 '15 at 15:26






    • 2




      What is the "relevant folder"? What command are you running in this folder?
      – kojow7
      Feb 26 at 20:21


















    • yes, the key generation was described in different way than you wrote. Anyhow great to have it solved.
      – Jakuje
      Dec 25 '15 at 15:26






    • 2




      What is the "relevant folder"? What command are you running in this folder?
      – kojow7
      Feb 26 at 20:21
















    yes, the key generation was described in different way than you wrote. Anyhow great to have it solved.
    – Jakuje
    Dec 25 '15 at 15:26




    yes, the key generation was described in different way than you wrote. Anyhow great to have it solved.
    – Jakuje
    Dec 25 '15 at 15:26




    2




    2




    What is the "relevant folder"? What command are you running in this folder?
    – kojow7
    Feb 26 at 20:21




    What is the "relevant folder"? What command are you running in this folder?
    – kojow7
    Feb 26 at 20:21












    up vote
    0
    down vote













    I was able to start the sshd service after following steps 5 and 6 in the instructions






    1. Setup SSH host keys (this will generate all the 'host' keys that sshd
      expects when its starts)




      • .ssh-keygen.exe -A




    2. Secure SSH host keys (optional)




      • Start-Service ssh-agent

      • download psexec here

      • launch cmd.exe as SYSTEM - psexec.exe -i -s cmd.exe

      • register host keys in above cmd.exe

      • ssh-add ssh_host_dsa_key

      • ssh-add ssh_host_rsa_key

      • ssh-add ssh_host_ecdsa_key

      • ssh-add ssh_host_ed25519_key









    share|improve this answer



























      up vote
      0
      down vote













      I was able to start the sshd service after following steps 5 and 6 in the instructions






      1. Setup SSH host keys (this will generate all the 'host' keys that sshd
        expects when its starts)




        • .ssh-keygen.exe -A




      2. Secure SSH host keys (optional)




        • Start-Service ssh-agent

        • download psexec here

        • launch cmd.exe as SYSTEM - psexec.exe -i -s cmd.exe

        • register host keys in above cmd.exe

        • ssh-add ssh_host_dsa_key

        • ssh-add ssh_host_rsa_key

        • ssh-add ssh_host_ecdsa_key

        • ssh-add ssh_host_ed25519_key









      share|improve this answer

























        up vote
        0
        down vote










        up vote
        0
        down vote









        I was able to start the sshd service after following steps 5 and 6 in the instructions






        1. Setup SSH host keys (this will generate all the 'host' keys that sshd
          expects when its starts)




          • .ssh-keygen.exe -A




        2. Secure SSH host keys (optional)




          • Start-Service ssh-agent

          • download psexec here

          • launch cmd.exe as SYSTEM - psexec.exe -i -s cmd.exe

          • register host keys in above cmd.exe

          • ssh-add ssh_host_dsa_key

          • ssh-add ssh_host_rsa_key

          • ssh-add ssh_host_ecdsa_key

          • ssh-add ssh_host_ed25519_key









        share|improve this answer














        I was able to start the sshd service after following steps 5 and 6 in the instructions






        1. Setup SSH host keys (this will generate all the 'host' keys that sshd
          expects when its starts)




          • .ssh-keygen.exe -A




        2. Secure SSH host keys (optional)




          • Start-Service ssh-agent

          • download psexec here

          • launch cmd.exe as SYSTEM - psexec.exe -i -s cmd.exe

          • register host keys in above cmd.exe

          • ssh-add ssh_host_dsa_key

          • ssh-add ssh_host_rsa_key

          • ssh-add ssh_host_ecdsa_key

          • ssh-add ssh_host_ed25519_key










        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Nov 19 at 21:49

























        answered Feb 23 '17 at 3:41









        Josh

        1074




        1074






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • 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%2fsuperuser.com%2fquestions%2f1017865%2fgetting-system-error-1067-when-installing-openssh%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

            Plaza Victoria

            Puebla de Zaragoza

            Musa