PowerShell / Win32-OpenSSH

Win32 port of OpenSSH
7.46k stars 766 forks source link

No Automated Backups Work #2306

Open lordexorr opened 2 days ago

lordexorr commented 2 days ago

Prerequisites

Steps to reproduce

We are looking to replace the integrated OpenSSH Server in Windows with the Github release so we can better control versioning and patching. We utilize OpenSSH Server for automated (nightly) configuration backups of numerous devices (Networking, VMware, etc). After installing OpenSSH Server v9.8.1.0p1 from Github (version doesn't seem to matter though, we've tried multiple) any manual backup works as expected; but all our automated/nightly backups fail. If we revert back to the built-in Windows OpenSSH Server they immediately start working again. I'm not clear on what the differences are, but I know our sshd_config files are identical, as well as the .pub and .key files. Permissions have been reset using the FixHostFilePermissions.ps1 and FixUserFilePermissions.ps1 scripts. Does anyone have any thoughts on what could be causing this. After MS broke OpenSSH in both October and November patch cycles we are really hoping to get away from utilizing the built-in version to better control this.

Expected behavior

Automated backups to function normally.

Actual behavior

Automated backups fail.

Error details

I am not able to see any errors that would point to the cause.

Environment data

Currently using v9.8.1.0p1 but we have tried previous versions, all have the same issue.

Version

v9.8.1.0p1

Visuals

No response

jborean93 commented 1 day ago

You'll most likely have to share more details like:

The more information you can share the better someone will be able to help figure out what might be going wrong.

mgkuhn commented 1 day ago

In the absence of pretty much any further details that would allow anyone to reproduce your situation, I can only suggest some control experiments to narrow down possible causes. For example, try to install from Github the same older release (9.5?) that Microsoft currently ships with your server, as a control experiment to learn whether the cause of your malfunction is related to either (a) the newer OpenSSH version number 9.8.1, or (b) the way you've installed OpenSSH for Windows from the Github release.