[pappy@chmodx]:$ man ssh

$ ssh

OpenSSH remote login client

DOCUMENTEDNetworkingUbuntu 24.04 LTS baseline

Synopsis

ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface] [-b bind_address] [-c cipher_spec] [-D [bind_address:]port] ... destination [command [argument ...]]

What it does

Examples

Connect to a remote host
ssh user@example.com
Connect to a specific port
ssh -p 2222 user@example.com
Run one remote command
ssh user@example.com 'uname -a'

Important details

These examples are intentionally conservative. Command behavior can still depend on filesystem state, permissions, locale, shell, installed package version, and other system configuration. For exact option semantics, the linked authoritative documentation is the source of truth.