darkoperator / darkoperator/Posh-SSH
Issue install Posh-SSH on server 2019
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 1.1k
- Forks
- 222
- PR merge metrics
- No merged PRs in 30d
Description
I am having issues installing Posh-SSH from the gallery on a freshly loaded Server 2019 vm. I have reviewed a number write up/kb but still unable to install it. I am able to install it on Win10 and have also tried on new test 2019 server:
I have open the powershell as administrator and set the execution policy to unrestricted and even made psgallery a trusted site all on my test server but I still get the same error. I had seen something about an update causing a conflict with a windows update and Renci.SshNet.
PS C:\Users\administrator> Install-Module -Name Posh-SSH -Force -Verbose
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
VERBOSE: The -Repository parameter was not specified. PowerShellGet will use all of the registered repositories.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2' and PackageManagementProvider is 'NuGet'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Posh-SSH'' for ''.
VERBOSE: Total package yield:'1' for the specified package 'Posh-SSH'.
VERBOSE: Performing the operation "Install-Module" on target "Version '2.2' of module 'Posh-SSH'".
VERBOSE: The installation scope is specified to be 'AllUsers'.
VERBOSE: The specified module will be installed in 'C:\Program Files (x86)\WindowsPowerShell\Modules'.
VERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'.
VERBOSE: Downloading module 'Posh-SSH' with version '2.2' from the repository 'https://www.powershellgallery.com/api/v2'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Posh-SSH'' for ''.
VERBOSE: InstallPackage' - name='Posh-SSH', version='2.2',destination='C:\Users\administrator\AppData\Local\Temp\2\1174176679'
VERBOSE: DownloadPackage' - name='Posh-SSH', version='2.2',destination='C:\Users\administrator\AppData\Local\Temp\2\1174176679\Posh-SSH\Posh-SSH.nupkg', uri='https://www.powershellgallery.com/api/v2/package/Posh-SSH/2.2.0'
VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/Posh-SSH/2.2.0'.
VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/Posh-SSH/2.2.0'.
VERBOSE: Completed downloading 'Posh-SSH'.
VERBOSE: Hash for package 'Posh-SSH' does not match hash provided from the server.
VERBOSE: InstallPackageLocal' - name='Posh-SSH', version='2.2',destination='C:\Users\administrator\AppData\Local\Temp\2\1174176679'
PackageManagement\Install-Package : The member 'FileList' in the module manifest is not valid: Could not load file or assembly 'Renci.SshNet, Version=10.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its
dependencies. The system cannot find the file specified.. Verify that a valid value is specified for this field in the 'C:\Users\administrator\AppData\Local\Temp\2\1174176679\Posh-SSH\Posh-SSH.psd1' file.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1809 char:21
- ... $null = PackageManagement\Install-Package @PSBoundParameters
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~- CategoryInfo : ResourceUnavailable: (C:\Users\admini...H\Posh-SSH.psd1:String) [Install-Package], Exception
- FullyQualifiedErrorId : Modules_InvalidManifest,Microsoft.PowerShell.Commands.TestModuleManifestCommand,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
Any suggestions?
Thanks
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported Install-Module -Name Posh-SSH -Force -Verbose command on Windows Server 2019 and inspect the generated Posh-SSH.psd1 manifest. Check the reported Renci.SshNet assembly-loading and package-hash errors, then document a confirmed installation outcome or the compatibility cause.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100