-
Notifications
You must be signed in to change notification settings - Fork 757
ssh.exe examples
Mike MacCana edited this page Jan 1, 2016
·
38 revisions
- Work Group Users:
ssh.exe user@host
- Domain Users:
ssh.exe -l user@domain host
- Generate a key pair on the client:
ssh-keygen.exe -t rsa -f id_rsa
- Copy
id_rsa.pub
(client's public key) to corresponding user's directory on ssh HOST- as
%systemdrive%\users\user\\.ssh\authorized_keys
- as
- 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)
-
Powershell can be launched over SSH by running the command powershell -File -
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 -
PS C:\Users\user> get-module
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Manifest 3.1.0.0 Microsoft.PowerShell.Management {Add-Computer, Add-Content, Checkpo...
The Modern Unix Rosetta Stone includes Powershell examples of common Unix and Linux commands.
- MSI Install Instructions
- Script Install Instructions
- Alternative installation using the universal installer
- Retrieving download links for the latest packages