PowerShell / PowerShell/Win32-OpenSSH
OpenSSH SSH Server Optional Feature Uninstalls Itself
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 8.3k
- Forks
- 819
- PR merge metrics
- No merged PRs in 30d
Description
"OpenSSH for Windows" version
((Get-Item (Get-Command sshd).Source).VersionInfo.FileVersion)
Get-Command: The term 'sshd' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Get-Item: Cannot bind argument to parameter 'Path' because it is null.
Server OperatingSystem
Windows 10 Pro 2004 and 20H2
What is failing
On all our computers the OpenSSH SSH Server service deinstalls itself, and the optional feature has to be reinstalled. I at first thought it was related to the upgrade to 20H2 but even PCs that are still on 2004 don't have ssh anymore.
I can reinstall the optional feature but I don't understand why it suddenly went AWOL.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the missing sshd condition on Windows 10 versions 2004 and 20H2, starting with the reported Get-Command and optional-feature behavior. Compare the OpenSSH Server service and feature state before and after the removal, then identify the cause and define a reliable fix or documented workaround.
Written by the indexing model from the issue text.
Assessment
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100