Windowsserverdocs: Can't install the "OpenSSHUtils"

Created on 14 Oct 2019  ·  10Comments  ·  Source: MicrosoftDocs/windowsserverdocs

[Enter feedback here]
can't install the "OpenSSHUtils" when I execute the command "Install-Module -Force OpenSSHUtils -Scope AllUsers"
Error info:
PackageManagement\Install-Package : 无法安装或更新模块“OpenSSHUtils”,因为文件“OpenSSHUtils.psd1”的验证码签名无效。
所在位置 C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1809 字符: 21

  • ... $null = PackageManagement\Install-Package @PSBoundParameters
  • ~~~~~~~~~~~~

    • CategoryInfo : InvalidOperation: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package],Exception

    • FullyQualifiedErrorId : InvalidAuthenticodeSignature,ValidateAndGetAuthenticodeSignature,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2

Most helpful comment

Looks like we'll need to do it by hand using @darkvertex 's manual steps.

It's probably removed because you should not need it anymore, as Windows has a built in ssh-agent. See for example: https://github.com/MicrosoftDocs/windowsserverdocs/issues/4345

All 10 comments

I have also met this issue.

In an Administrator PowerShell session:

❯ Install-Module -Force OpenSSHUtils -Scope AllUsers
PackageManagement\Install-Package : The module 'OpenSSHUtils' cannot be installed or updated       because the authenticode signature of the file 'OpenSSHUtils.psd1' is not valid.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1809 char:21     + ...          $null = PackageManagement\Install-Package @PSBoundParameters
+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (Microsoft.Power....InstallPackage:InstallPackage     ) [Install-Package], Exception
    + FullyQualifiedErrorId : InvalidAuthenticodeSignature,ValidateAndGet-AuthenticodeSignature,M     icrosoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

Getting an error also... :man_shrugging:

PS C:\WINDOWS\system32> Install-Module -Force OpenSSHUtils -Scope AllUsers
PackageManagement\Install-Package : No match was found for the specified search criteria and module name
'OpenSSHUtils'. Try Get-PSRepository to see all available registered module repositories.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1809 char:21
+ ...          $null = PackageManagement\Install-Package @PSBoundParameters
+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Ex
   ception
    + FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

Will someone please fix the docs with complete instructions? :/

BTW I was able to get ssh key authentication working without OpenSSHUtils by following these helpful Stackoverflow steps:

https://stackoverflow.com/a/50502015/4224858

Would you be able to suggest which parts to remove and which parts of the documentation to keep, maybe start working on a Pull Request to have these documents improved? If yes, feel free to choose between posting the changes you recommend here in this issue ticket, or open a Pull Request to change the document itself, if you are certain which parts need changing.

Disclaimer: I am not affiliated with Microsoft or the Microsoft Docs teams here on GitHub.

The intention of this repository is to improve on the existing documentation
by providing the users a way to report factual errors, improvement suggestions and request updates for new versions.
The MS Docs team members might not have time to answer your questions, both due to the small size of the team and the big workload.


edit; List of open issues related to "OpenSSHutils":

  • More documentation required (#4634) garylawuk opened 3 days ago
  • Out-of-date - OpenSSHUtils no longer available. (#4622) Jammrock opened 6 days ago
  • Instructions provided ends with an error (#4598) jyavenard opened 17 days ago
  • Unable to configure OpenSSH for public key auth following docs (#4518) jaraco opened 25 days ago
  • OpenSSHUtils Not Needed (#4345) gynnantonix opened on May 14
  • Outdated instructions? (#4023) RussKeldorph opened on Mar 16
  • OpenSSH installation (#3970) DavidA2014 opened on Mar 2
  • OpenSSHUtils is deprecated (#3806) FizzBuzz791 opened on Jan 28
  • Misleading title/summary causing search confusion (#3456) ChrisDodd opened on Oct 30, 2019
  • A better explanation can be found here (#2747) ElimAdmin opened on Apr 23, 2019

Looks like we'll need to do it by hand using @darkvertex 's manual steps.

https://www.powershellgallery.com/packages/OpenSSHUtils/1.0.0.1

That package has been unlisted from the Powershell Gallery without a word. Hence the no match errors. I've reached out to the maintainers, but until them you either need to install the package manually or just set the permissions by hand.

Looks like we'll need to do it by hand using @darkvertex 's manual steps.

It's probably removed because you should not need it anymore, as Windows has a built in ssh-agent. See for example: https://github.com/MicrosoftDocs/windowsserverdocs/issues/4345

See Pull Request #4788 for a suggested improvement to this issue.
(The PR will close this issue ticket when it gets merged.)

Please comment in PR #4788 (update OpenSSH key management) if you think the suggested change needs to be improved.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

janis-veinbergs picture janis-veinbergs  ·  5Comments

skyflyer picture skyflyer  ·  3Comments

buzzywinter picture buzzywinter  ·  5Comments

alanmreagan picture alanmreagan  ·  5Comments

parabolic123 picture parabolic123  ·  4Comments