Page:
ssh.exe examples
Pages
About Win32 OpenSSH and Design Details
Area Owners
Build OpenSSL
Building OpenSSH for Windows (using LibreSSL crypto)
Building Win32 OpenSSH on Linux
Certificate Authentication
DefaultShell
Deploy Win32 OpenSSH
Difference between openssh 5.9p1 and nomachine implementation
Dos2Unix Text file format converters
Eclipse CDT and GDB setup to debug SSH tools
FIDO U2F usage
Home
How to retrieve links to latest packages
Install Win32 OpenSSH Using MSI
Install Win32 OpenSSH
Intro Links for Penetration Testing
Logging Facilities
Migrate sshd_config from older versions
OpenSSH 32 bit Build and Installation Instructions
OpenSSH 64 bit Build and Installation Instructions
OpenSSH build sequence
OpenSSH utility scripts to fix file permissions
Project Scope
Project Status
Run OpenSSH Pester Tests
Run commands for various shells
Running Tests
SSH remote sessions on Windows
Security protection of various files in Win32 OpenSSH
Setting up a Git server on Windows using Git for Windows and Win32_OpenSSH
Setup public key based authentication for windows
TTY PTY support in Windows OpenSSH
Troubleshooting Steps
Various Considerations
Win32 OpenSSH RoadMap
[Deprecated] Building using VS 2015
[Deprecated] Win32 OpenSSH Automated Install and Upgrade using Chocolatey
sftp.exe examples
ssh agent
ssh.exe examples
ssh
ssh_config
sshd
sshd_config
38
ssh.exe examples
bagajjal edited this page 2022-04-14 14:18:33 -07:00
Login With Password
- Workgroup users
ssh user@host
- Domain users: Prior to v7.7.0.0, domain needs to be explicitly specified. Any of the following formats work
ssh -l user@domain host
ssh domain\user@host
ssh user@domain@host
ssh user@host
(works from v7.7.0.0 onwards provideduser
has no conflicts otherwise - ex.user
exists both on local account data base and on domain)
Login With SSH Keys
Usage from client-side (ssh
)
- 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
ssh-add id_rsa
- 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 (sshd
)
- 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).
icacls %systemdrive%\Users\<user>\.ssh\authorized_keys
Login using Kerberos Authentication
Setup server-side
- On a domain joined server, set GSSAPIAuthentication to
yes
in sshd_config - If sshd_config is modified then restart the sshd service
net stop sshd
net start sshd
Usage on a domain joined Windows client logged in as domain user
ssh -K host
Please note you have to use the hostname instead of the username.
For Unix and Linux users
The Modern Unix Rosetta Stone includes PowerShell examples of common Unix and Linux commands.
Manuals
Installation
- MSI Install Instructions
- Script Install Instructions
- Alternative installation using the universal installer
- Retrieving download links for the latest packages
Usage
- SSH Usage Examples
- SFTP Usage Examples
- Using Certificate Authentication
- Fix SSH file permissions
- Info on SSH remote sessions on Windows
- TTY PTY support
- Troubleshooting