-
Notifications
You must be signed in to change notification settings - Fork 753
Install Win32 OpenSSH Using MSI
- Win32-OpenSSH Github releases can be installed on Windows 7 and up.
- Note these considerations and project scope first.
- Download the latest build of OpenSSH, selecting either the 32-bit or 64-bit MSI.
The MSI must be run in any command prompt (cmd.exe & pwsh.exe both work), as it does not yet have a UI (coming soon).
The MSI will install OpenSSH to the ProgramFiles\OpenSSH
folder.
The commands to run, are as follows:
- To install both the SSH Client & the SSH Server (default behavior)
msiexec /i <path to openssh.msi>
- To install only the SSH Client
msiexec /i <path to openssh.msi> ADDLOCAL=Client
- To install only the SSH Server
msiexec /i <path to openssh.msi> ADDLOCAL=Server
- To uninstall only the SSH Client
msiexec /i <path to openssh.msi> REMOVE=Client
- To uninstall only the SSH Server
msiexec /i <path to openssh.msi> REMOVE=Server
- Installing SSH Client & openssh.msi is in the working directory:
msiexec /i openssh.msi ADDLOCAL=Client
- Installing SSH Server & openssh.msi is in C:\users\public\downloads:
msiexec /i C:\users\public\downloads\openssh.msi ADDLOCAL=Server
- Uninstalling SSH Client & openssh.msi is in the working directory:
msiexec /i openssh.msi REMOVE=Client
- Uninstalling SSH Server & openssh.msi is in C:\users\public\downloads:
msiexec /i C:\users\public\downloads\openssh.msi REMOVE=Server
Append the Win32-OpenSSH install directory to the system path, by running the following command in an elevated PowerShell session:
[Environment]::SetEnvironmentVariable("Path", [Environment]::GetEnvironmentVariable("Path",[System.EnvironmentVariableTarget]::Machine) + ';' + ${Env:ProgramFiles} + '\OpenSSH', [System.EnvironmentVariableTarget]::Machine)
To verify that the System Path variable was modified properly, the Environment Variables can be viewed in Control Panel, under the Advanced tab.
Check the status of the SSH Service.
In PowerShell, run:
Get-Service -Name ssh*
Similarly, the command to uninstall Win32-OpenSSH is as follows:
msiexec /x <path to openssh.msi>
Further information on msi command-line options can be found here
Meeting.with.Balu.Gajjala-20220318_145330-Meeting.Recording.mp4
- MSI Install Instructions
- Script Install Instructions
- Alternative installation using the universal installer
- Retrieving download links for the latest packages