Win32-OpenSSH icon indicating copy to clipboard operation
Win32-OpenSSH copied to clipboard

sshd.exe missing in git clone repo download

Open lolson27 opened this issue 6 months ago • 4 comments
trafficstars

Prerequisites

  • [x] Write a descriptive title.
  • [x] Make sure you are able to repro it on the latest version.
  • [x] Search the existing issues.

Steps to Reproduce 🔄 Steps to Reproduce ✅ System Information

  • OS: Windows 10.0.26100.4061
  • Issue: sshd.exe missing from cloned repository, preventing OpenSSH installation. ✅ Reproduction Steps 1️⃣ Open PowerShell as Administrator 2️⃣ Clone the repository: git clone https://github.com/PowerShell/Win32-OpenSSH.git

3️⃣ Navigate to the cloned folder: cd C:\Windows\System32\Win32-OpenSSH

4️⃣ Copy files to the expected system directory: Copy-Item -Recurse -Force "C:\Windows\System32\Win32-OpenSSH" "C:\Program Files\OpenSSH"

 5️⃣ Attempt to install OpenSSH using PowerShell: powershell -ExecutionPolicy Bypass -File install-sshd.ps1

Expected Behavior ✅ Expected Behavior:
sshd.exe should be present in C:\Program Files\OpenSSH after executing the installation script in PowerShell, allowing installation to proceed.

 Actual Behavior ❌ Actual Behavior:
Only documentation files (e.g., README.md) exist—sshd.exe is missing, preventing installation.



Error Details PS C:\WINDOWS\system32\Win32-OpenSSH> powershell -ExecutionPolicy Bypass -File install-sshd.ps1 The argument 'install-sshd.ps1' to the -File parameter does not exist. Provide the path to an existing '.ps1' file as an argument to the -File parameter.

The : The term 'The' 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.
At line:1 char:1

  • The argument 'install-sshd.ps1' to the -File parameter does not exist ...
  •   + CategoryInfo          : ObjectNotFound: (The:String) [], CommandNotFoundException  
      + FullyQualifiedErrorId : CommandNotFoundException  
    
    



Environment Data PS C:\WINDOWS\system32\Win32-OpenSSH> $PSVersionTable

Name Value


PSVersion 5.1.26100.4061
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.26100.4061
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Version PSVersion 5.1.26100.4061
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.26100.4061
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Image

Image

Image

lolson27 avatar May 23 '25 18:05 lolson27