Built-in OpenSSH server doesn't work at Windows 10
I try to run built-in OpenSSH server at Windows 10. I installed it via GUI I generated keys with ssh-keygen.exe -A
and copied c:\Windows\System32\OpenSSH\sshd_config_default
to c:\ProgramData\ssh\sshd_config
Now I try to run the server via Windows Services GUI. I select OpenSSH SSH Server
service and click Start
button. Service can not start and displays 1067 error. I run net start
to get this error in text form, it follows:
net start sshd
The OpenSSH SSH Server service is starting.
The OpenSSH SSH Server service could not be started.
A system error has occurred.
System error 1067 has occurred.
The process terminated unexpectedly.
I tried to enable logging by adding following lines to default configuration:
SyslogFacility LOCAL0
LogLevel Debug3
However, no log file appeared in c:\ProgramData\ssh\logs\
When I run sshd.exe
manually as administrator, it starts successfully, but I can not connect to the server. When I start manually, sshd.log
appears for any reason, and when I connect, it writes following error message:
1188 2023-01-12 12:16:17.889 debug3: spawning "c:\\Windows\\System32\\OpenSSH\\sshd.exe" -z
1188 2023-01-12 12:16:17.889 error: CreateProcessAsUserW failed error:1314
1188 2023-01-12 12:16:17.889 fatal: fork of unprivileged child failed
Are there any idea how to fix it? I naively expected that if tool is "built-in" by respected Microsoft in its best OS in the Universe, it should work "out of box" and should not need hours to fix a lot of misconfiguration after "automatic install via GUI".