SSH Command Examples: Syntax, Flags, Tunnels, and Keys
Learn the ssh command syntax with practical examples for Linux, macOS, and Windows. Covers ssh -i, ports, tunnels, ProxyJump, config aliases, and debugging.
The ssh command connects to remote hosts and supports identity files, custom ports, tunnels, and jump hosts.
Use ssh -i to select a specific private key and ssh -v to debug authentication failures.
SSH config aliases reduce repeated command-line options for common servers.