How to Install OpenSSH Server on Windows7 in Offline

I needed to install OpenSSH Server on an old Windows 7 32-bit computer that I use for work. Here, I’ll document the steps I followed.

Download OpenSSH

Go to GitHub and Download

Go to GitHub PowerShell/OpenSSH and download the proper version of OpenSSH.

Copy the zip file to Windows 7

Copy the downloaded zip file to a USB drive or other media.
Extract the zip file and save it to a folder on the Windows 7 machine that will act as the SSH server, such as C:\Program Files\OpenSSH-Win32. The location can be anywhere.

Installation by PowerShell

Launch PowerShell with administrator privileges and run the following command to install. The cd path will vary depending on where OpenSSH is saved.

cd 'C:\Program Files\OpenSSH-Win32'
.\install-sshd.ps1

Check Status and Start sshd

Run the following command in PowerShell to check the current status. If OpenSSH has been installed correctly, it will return the current status (Stopped or Running).

Get-Service -Name sshd

Start sshd with the following command.

Start-Service -Name sshd

You can check it in Services Window.

References

https://github.com/PowerShell/Win32-OpenSSH/releases

/https://learn.microsoft.com/it-it/powershell/module/microsoft.powershell.management/get-service?view=powershell-7.4


Comments

Leave a comment