Posh-SSH

2.0

Provide SSH and SCP functionality for executing commands against remote hosts.

Minimum PowerShell version

3.0

There is a newer prerelease version of this module available.
See the version list below for details.

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name Posh-SSH -RequiredVersion 2.0

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name Posh-SSH -Version 2.0

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2017 Carlos Perez. All rights reserved.

Package Details

Author(s)

  • Carlos Perez

Cmdlets

Get-SCPFile Get-SCPFolder Get-SFTPFile Set-SFTPFile New-SFTPSession New-SSHSession Set-SCPFile Set-SCPFolder

Functions

Get-SSHSession Remove-SSHSession Invoke-SSHCommand Get-PoshSSHModVersion Invoke-SSHCommandStream New-SSHShellStream Invoke-SSHStreamExpectAction Invoke-SSHStreamExpectSecureAction Get-SSHTrustedHost New-SSHTrustedHost Remove-SSHTrustedHost Get-SFTPSession Remove-SFTPSession Get-SFTPChildItem Test-SFTPPath Remove-SFTPItem Set-SFTPLocation Get-SFTPLocation Rename-SFTPFile Get-SFTPPathAttribute Set-SFTPPathAttribute New-SFTPSymlink Get-SFTPContent Set-SFTPContent New-SFTPFileStream New-SFTPItem New-SSHLocalPortForward New-SSHRemotePortForward New-SSHDynamicPortForward Get-SSHPortForward Stop-SSHPortForward Start-SSHPortForward

Dependencies

This module has no dependencies.

Release Notes

* Windows PowerShell 2.0 has been deprecated by Microsoft and several major versions have been released after it, for this reason PowerShell 2.0 is no longer supported by the module.
* New-SSHSession, New-SFTPSession, Set-SCPFile and Set-SCPFolder support the KeyString parameter, a string array of the content of a OpenSSH key for authentication.
* For Azure users when Force parameter is used it will not look in to the resgitry for exiting keys to validate against. Usefull when ran under an account that is not a user.
* Set-SCPFile Better pipeline support when receiving objects from Get-Childitem.
* Set-SFTPFile LocalFile Parameter accepts a string[].

FileList

Version History

Version Downloads Last updated
3.2.0 328,722 4/14/2024
3.1.3 2,547,784 1/29/2024
3.1.3-beta1 41 1/26/2024
3.1.2 1,032,081 1/3/2024
3.1.1 2,257,562 10/23/2023
3.0.8 9,468,772 10/22/2022
3.0.7 95,276 10/16/2022
3.0.6 1,617,348 6/28/2022
3.0.5 48,573 6/23/2022
3.0.4 460,055 6/1/2022
3.0.3 316,919 5/20/2022
3.0.2 6,628 5/20/2022
3.0.1 1,419,289 3/11/2022
3.0.0 3,804,706 8/30/2021
3.0.0-beta5 1,340 6/4/2021
3.0.0-beta4 103 6/2/2021
3.0.0-beta3 109 6/1/2021
3.0.0-beta2 218 5/17/2021
3.0.0-beta1 52,318 3/4/2021
3.0.0-alpha 681 2/1/2021
2.3.0 3,164,259 10/4/2020
2.3.0-Beta1 2,072 6/5/2020
2.2 2,301,788 5/12/2019
2.1 3,404,817 1/23/2019
2.0.2 780,328 10/13/2017
2.0.1 49,518 8/14/2017
2.0 (current version) 2,309 8/11/2017
1.7.7 118,599 12/23/2016
1.7.6 43,798 7/29/2016
1.7.5 7,212 7/9/2016
1.7.4 112 7/9/2016
1.7.3 53,700 11/4/2015
1.7.2 949 3/26/2015
1.7 153 3/18/2015
1.6 506 8/17/2014
Show less