Wie Microsoft bekannt gab, wird SSH durch PowerShell in Windows 10 unterstützt werden
Dabei handelt es sich um eine Drittanbieter-Lösungen namens Posh-SSH. Um SSH in PowerShell nutzen zu können, muss zuerst das Posh-SSH Modul aus der PowerShell Gallery installieren werden. Erforderlich ist das Windows 10 zur Anwendung kommt, oder dass das Windows Management Framework 5 installiert ist.
Posh-SSH kann wie folgt aus PowerShell installiert werden.
1 2 3 4 5 6 7 |
PS C:> Find-Module Posh-SSH Install-Module Posh-SSH Get-Command -Module Posh-SSH New-SSHSession -ComputerName "192.168.12.34" -Credential (Get-Credential) Invoke-SSHCommand -Index 0 -Command "uname -a" |
Damit ist es möglich Befehle auf dem Linux Host auszuführen und Dateien zu kopieren.
Posh-SSH ist ein PowerShell 3.0 Modul für die Automatisierung von Aufgaben gegen das System mit dem SSH-Protokoll (OpenSSH). Das Modul unterstützt nur eine Teilmenge der Fähigkeiten, diese in RFCs https://de.wikipedia.org/wiki/Secure_Shell definiert sind.