Skip to content

Getting “System error 1067” when installing OpenSSH #55

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tgefen opened this issue Dec 25, 2015 · 14 comments
Closed

Getting “System error 1067” when installing OpenSSH #55

tgefen opened this issue Dec 25, 2015 · 14 comments

Comments

@tgefen
Copy link

tgefen commented Dec 25, 2015

I'm trying to install the package on windows Server 2008 R2. I applied all steps (except the firewall one) and all passed successfully.

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).

You can see more details on the XML below.

Note:

I skipped the Firewall step since the firewall is not running.
I generated the keys successfully
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.

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: WINS08-2
Description:
The SSHD service terminated unexpectedly. It has done this 2 time(s).
Event Xml:



7034
0
2
0
0
0x8080000000000000

20007


System
WINS08-2



SSHD
2

@tgefen
Copy link
Author

tgefen commented Dec 25, 2015

I could resolve it by myself.
You have to tell users to "cd" to the extracted folder before running step #3.
https://github.com/PowerShell/Win32-OpenSSH/wiki/Deploy-Win32-OpenSSH

@mikemaccana
Copy link
Contributor

@manojampalam
Copy link
Contributor

Thanks for taking care of this.

@mikemaccana
Copy link
Contributor

No probs @manojampalam thank for all your hard work! 💯

@jyhong836
Copy link

I meet the same problem when I install OpenSSH under 'D:/XXX/'. Not sure why this happens.

@bagajjal
Copy link
Collaborator

@jyhong836 - Try troubleshooting steps. I would recommend installing OpenSSH under c:\program files.

If you couldn't resolve your problem then please open a new issue, provide sshd log (with DEBUG3 enabled).

@jyhong836
Copy link

@bagajjal Yes. Installing in 'c:\program...' will resolve the issue. Thanks.

@JukEboXAuDiO
Copy link

Getting this error with 7.7.2.0p Beta. Is installed in C:\program Files\OpenSSH on Windows Server 2016.

@egoldin
Copy link

egoldin commented Sep 6, 2018

Me too, also C:\program Files\OpenSSH on Windows Server 2016

@amakhno
Copy link

amakhno commented Nov 23, 2018

Running FixHostFilePermissions.ps1 script solved this problem for me

@s2zaman
Copy link

s2zaman commented Jun 26, 2019

The OpenSSH SSH Server service terminated unexpectedly
After installing the 64bit version of OpenSSH, got this error while starting the service.

Resolved by installing the 32bit version.

@s2zaman
Copy link

s2zaman commented Jun 26, 2019

The 64bit version too is working now.
I suspect it is a permissions issue with 64bit version only.

Thanks @amakhno for pointing out.

The FixHostFilePermissions.ps1 powershell script residing at C:\Program Files\OpenSSH-Win64\FixHostFilePermissions.ps1 resolved the error The OpenSSH SSH Server service terminated unexpectedly.

The sshd service is now starting successfully.
Can be found in services with the OpenSSH SSH Server as display name.

@0xarcano
Copy link

The 64bit version too is working now.
I suspect it is a permissions issue with 64bit version only.

Thanks @amakhno for pointing out.

The FixHostFilePermissions.ps1 powershell script residing at C:\Program Files\OpenSSH-Win64\FixHostFilePermissions.ps1 resolved the error The OpenSSH SSH Server service terminated unexpectedly.

The sshd service is now starting successfully.
Can be found in services with the OpenSSH SSH Server as display name.

It works for me, thanks!

@EdwinCloud101
Copy link

This video explains at 2:00 minutes

https://youtu.be/gUOEaZb0gW8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests