4

I wanted to update the pre-installed version of OpenSSH for Windows on Windows 1903, since that one, 7.2p1 had some issues which had reportedly been fixed on v 8.0.0.0.

I followed the guide and links as given on - Update OpenSSH for Windows, and subsequently did a Powershell update.

However, when typing ssh -V in Powershell, I get, OpenSSH_for_Windows_7.7p1, and not 8.0.0.0 as I was expecting. I checked the environment variables, they all pointed to the correct location of OpenSSH binary folder within Program Files. The earlier version had been in a different place, which is no longer there.

When I try and get the File version of the sshd service installed, I get 8.0.0.0, but ssh -V still returns 7.7p1. Should I be concerned about this version mismatch?

user1173240
  • 595
  • 2
  • 8
  • 25

2 Answers2

5

I got the same version mismatch. I was concerned because it appeared that the SSH sessions I was initiating were using 7.7, and not 8.0. To fix it, I uninstalled openssh from Settings > Apps > Optional Features, and then installed the new Git-based version with chocolatey:

choco install openssh

Then, an ssh -V returned 8.0. Didn't fix my particular problem, but it did fix the version mismatch! Hope that helps.

Lamprocles
  • 51
  • 1
  • 2
-1

I encountered the same "issue" You need to check where ssh is pointing to. get-command ssh | select name,path will let you know where ssh.exe is located.

Name                                 Path
----                                 ---- 
ssh.exe                              C:\Program Files\Git\usr\bin\ssh.exe

in my case it was pointing to

C:\Program Files\Git\usr\bin\ssh.exe

so I updated git, checked system variable PATH and now it shows latest version

ssh -V
OpenSSH_8.2p1, OpenSSL 1.1.1d  10 Sep 2019
2 B
  • 9
  • 2
  • 2
    That isn’t the correct path for the OpenSSH Client optional Windows Feature. You have simply installed OpenSSH that comes along with Git. This was not actually the author’s question, they made not mention of using Git, installing Git doesn’t update the OpenSSH they already have installed – Ramhound Mar 17 '20 at 11:31
  • You didn’t install the Microsoft port of OpenSSH if it’s installed in the directory you specified. – Ramhound Mar 17 '20 at 11:54
  • `Get-Command ssh` _C:\WINDOWS\System32\OpenSSH\ssh.exe_ `Get-WmiObject win32_service | ?{$_.Name -eq 'sshd'} | select Name, DisplayName, State, PathName` _sshd OpenSSH SSH Server Stopped "C:\Users\\Downloads\OpenSSH-Win64\sshd.exe"_ install-sshd.ps1 does not include ssh.exe file update.it is only updating sshd and ssh-agent services. – 2 B Mar 17 '20 at 12:02
  • That still isn’t the correct path for OpenSSH when it’s installed through Optional Windows Feature. – Ramhound Mar 17 '20 at 12:37