Skip to content
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

install-sshd.ps1 script not installed by OpenSSH-Win32-v9.5.0.0.msi #2205

Open
3 tasks done
DirkHoffmann opened this issue Feb 15, 2024 · 3 comments
Open
3 tasks done

Comments

@DirkHoffmann
Copy link

Prerequisites

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

Steps to reproduce

I just downloaded OpenSSH-Win32-v9.5.0.0.msi from this github project.

Expected behavior

According to the [instructions](/wiki/Install-Win32-OpenSSH) it should install a script ìnstall-sshd.ps1`.

Actual behavior

When installing OpenSSH with this MSI, it does not install the script install-sshd.ps1. 
I downloaded OpenSSH-Win32.zip from the same place / version, and it contained the missing script. Copying it to `C:\Program Files\OpenSSH` allowed to do the installation as described in the [instructions](/wiki/Install-Win32-OpenSSH). But I think that is not how it is supposed to work in the first place. Can you add it to the MSI file please?

Error details

No response

Environment data

Windows 7

C:\Program Files\OpenSSH>echo $PSVersionTable
$PSVersionTable

Version

9.5.5.0

Visuals

No response

@tgauth
Copy link
Collaborator

tgauth commented Feb 15, 2024

Please see https://github.com/PowerShell/Win32-OpenSSH/wiki/Install-Win32-OpenSSH-Using-MSI.

The MSI handles the setup within install-sshd.ps1 which is why it is not included.

@DirkHoffmann
Copy link
Author

Thanks for your prompt answer. How could I miss that? I will try to understand the reason and may propose a slight update to the instructions.

@DirkHoffmann
Copy link
Author

I think I understood what happened: Google sends us to instructions when searching for "Install Windows OpenSSH" as first occurence for github.
There are also two other results referring to MS OpenSSH instructions before when asking Google.

As wiki PR between projects are rather tricky in github, I prepared an updated page here in my clone, which you can integrate into your wiki repo rather easily. Please let me know, if you prefer a different workflow.

Actually, I noticed that there are four different ways to install OpenSSH now, and documentation has grown rather independently, and instructions are not very structured any more:

  1. Following the new MS page. Likely this is the preferred one or to recommend, isn't it?
  2. With Winget as described here, where you get from Google by default. Second choice.
  3. With MSI as described here. Third preference?
  4. By cloning or ZIP file as described in the same place as for Winget. Probably most appropriate for test releases and pathological cases.

Maybe they could all go on a single page (in the order of preference/recommendation) for more clarity?

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

No branches or pull requests

3 participants