diff --git a/ssh.exe-examples.md b/ssh.exe-examples.md index 4b47fe4..e5d87b2 100644 --- a/ssh.exe-examples.md +++ b/ssh.exe-examples.md @@ -12,4 +12,29 @@ * as %windir%\users\user\\.ssh\authorized_keys 3. Login using private key * ./ssh.exe -i ./id_rsa user@host (work group user) - * ./ssh.exe -i ./id_rsa -l user@domain host (domain user) \ No newline at end of file + * ./ssh.exe -i ./id_rsa -l user@domain host (domain user) + +##### Remote Powershell over ssh +Powershell can be launched over remote ssh session as follows: + +`C:\Master>ssh.exe -l user@127.0.0.1` + +`user@127.0.0.1's password: **********` + +`Microsoft Windows [Version 10.0.10566]` + +`(c) 2016 Microsoft Corporation. All rights reserved.` + +`user@DEV-10566-829 C:\Users\user>powershell -File -` + +`powershell -File -` + +`powershell -File -` + +`PS C:\Users\user> get-module` + +`get-module` + +`ModuleType Version Name ExportedCommands` +`---------- ------- ---- ----------------` +`Manifest 3.1.0.0 Microsoft.PowerShell.Management {Add-Computer, Add-Content, Checkpo...` \ No newline at end of file