https://github.com/darkoperator/Posh-SSH
PowerShell Module for automating tasks on remote systems using SSH
https://github.com/darkoperator/Posh-SSH
Last synced: 4 months ago
JSON representation
PowerShell Module for automating tasks on remote systems using SSH
- Host: GitHub
- URL: https://github.com/darkoperator/Posh-SSH
- Owner: darkoperator
- License: bsd-3-clause
- Created: 2012-10-13T03:14:01.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2024-02-01T12:12:45.000Z (about 1 year ago)
- Last Synced: 2024-03-16T22:22:07.308Z (11 months ago)
- Language: C#
- Homepage:
- Size: 16 MB
- Stars: 947
- Watchers: 71
- Forks: 228
- Open Issues: 180
-
Metadata Files:
- Readme: Readme.md
- Changelog: CHANGELOG.md
- License: License.md
Awesome Lists containing this project
README
# Posh-SSH
## Description
Windows Powershell module that leverages a custom version of the [SSH.NET Library](https://github.com/sshnet/SSH.NET) to provide basic SSH functionality in Powershell.
The main purpose of the module is to facilitate automating actions against one or multiple SSH enabled Linux servers from a Windows Host. As of version 3.x the module can be used in Linux and Mac OS using .Net Standard.This module is for Windows PowerShell 5.1 or PowerShell 7.x., On Windows Server, version 1709 or older .Net Framework 4.8 or above is required for the proper loading of the module.
Except as represented in this agreement, all work product by Developer is provided “AS IS”. Developer makes no other warranties, express or implied, and hereby disclaims all implied warranties, including any warranty of merchantability and warranty of fitness for a particular purpose.
## Install
To install the module run the command command:
``` PowerShell
Install-Module -Name Posh-SSH
```
### Video Tutorials#### What is Posh-SSH and Install
[](https://youtu.be/83g6Yy6eTbo?si=0s6Mx5GRzIt14BQI)#### Creating and Managing Sessions
[](https://youtu.be/fNJgQT8wCOs?si=uD5Vdpgs_oE843EO)
#### Managing Known Hosts
[](https://youtu.be/WyGPO1GPJQ4?si=DozUZlmUx1ghd1L4)## Support
* Provides functionality for automating SSH, SFTP and SCP actions.
* Supports SOCKS4, SOCKS5 and HTTP Proxy
* Remote, dynamic and local port forwardingThe following encryption methods are supported:
* aes128-ctr
* aes192-ctr
* aes256-ctr
* aes128-cbc
* aes192-cbc
* aes256-cbc
* 3des-cbc
* blowfish-cbc
* twofish-cbc
* twofish192-cbc
* twofish128-cbc
* twofish256-cbc
* arcfour
* arcfour128
* arcfour256
* cast128-cbcThe following key exchange methods are supported:
* curve25519-sha256
* curve25519-sha256@libssh.org
* ecdh-sha2-nistp256
* ecdh-sha2-nistp384
* ecdh-sha2-nistp521
* diffie-hellman-group-exchange-sha256
* diffie-hellman-group-exchange-sha1
* diffie-hellman-group16-sha512
* diffie-hellman-group14-sha256
* diffie-hellman-group14-sha1
* diffie-hellman-group1-sha1The module supports the following private key formats:
* RSA in OpenSSL PEM ("BEGIN RSA PRIVATE KEY") and ssh.com ("BEGIN SSH2 ENCRYPTED PRIVATE KEY") format
* DSA in OpenSSL PEM ("BEGIN DSA PRIVATE KEY") and ssh.com ("BEGIN SSH2 ENCRYPTED PRIVATE KEY") format
* ECDSA 256/384/521 in OpenSSL PEM format ("BEGIN EC PRIVATE KEY")
* ECDSA 256/384/521, ED25519 and RSA in OpenSSH key format ("BEGIN OPENSSH PRIVATE KEY")Private keys can be encrypted using one of the following cipher methods:
* DES-EDE3-CBC
* DES-EDE3-CFB
* DES-CBC
* AES-128-CBC
* AES-192-CBC
* AES-256-CBCThe module supports the following host key algorithms:
* ssh-ed25519
* ecdsa-sha2-nistp256
* ecdsa-sha2-nistp384
* ecdsa-sha2-nistp521
* rsa-sha2-512
* rsa-sha2-256
* ssh-rsa
* ssh-dssThe module supports the following MAC algorithms:
* hmac-sha2-256
* hmac-sha2-512
* hmac-sha2-512-96
* hmac-sha2-256-96
* hmac-sha1
* hmac-sha1-96
* hmac-md5
* hmac-md5-96
* hmac-sha2-256-etm@openssh.com
* hmac-sha2-512-etm@openssh.com
* hmac-sha1-etm@openssh.com
* hmac-sha1-96-etm@openssh.com
* hmac-md5-etm@openssh.com
* hmac-md5-96-etm@openssh.com## Donate