Login With Password
- Workgroup users
- Domain users: Prior to v220.127.116.11, domain needs to be explicitly specified. Any of the following formats work
ssh -l user@domain host
ssh user@host(works from v18.104.22.168 onwards provided
userhas no conflicts otherwise - ex.
userexists both on local account data base and on domain)
Login With SSH Keys
Usage from client-side (
- Generate a key pair on the client (preferably with a passphrase):
ssh-keygen -t rsa -f id_rsa
- Register private key with ssh-agent (optional, for single sign-on experience)
net start ssh-agent
- Login using private key
ssh -i .\id_rsa user@host(workgroup user)
ssh -i .\id_rsa -l user@domain host(domain user)
Setup server-side (
- Append contents of
id_rsa.pub(client's public key) to the following file in corresponding user's directory
%systemdrive%\Users\<user>\.ssh\authorized_keys(create one if needed).
- Double check access permissions on authorized_keys (only System, Administrators and owner can have access).
Login using Kerberos Authentication
- On a domain joined server, set GSSAPIAuthentication to
Usage on a domain joined Windows client logged in as domain user
ssh -K host
For Unix and Linux users
The Modern Unix Rosetta Stone includes PowerShell examples of common Unix and Linux commands.