SSH, The Secure Shell: The Definitive Guide, 2nd Edition
by Daniel J. Barrett, Richard E. Silverman, Robert G. Byrnes
ssh Options
OpenSSH | Tectia | Option | Meaning |
|---|---|---|---|
✓ | -1 | Use SSH-1 protocol only | |
✓ | -1(t |i) | Use SSH-1 protocol via
ssh1 executable ( | |
✓ | -2 | Use SSH-2 protocol only | |
✓ | ✓ | -4 | Use IPv4 addresses only |
✓ | ✓ | -6 | Use IPv6 addresses only |
✓ | ✓ | -a | Disable agent forwarding |
✓ | +a | Enable agent forwarding | |
✓ | -b bind_address | Select a network interface | |
✓ | -A | Enable agent forwarding | |
✓ | ✓ | -c cipher | Select encryption cipher |
✓ | -C | Enable compression | |
✓ | -C | Disable compression | |
✓ | +C | Enable compression | |
✓ | -d debug_spec | Enable debug messages | |
✓ | -D port | Do dynamic port forwarding | |
✓ | ✓ | -e character | Set escape character |
✓ | -E name | Use external key-provider
| |
✓ | ✓ | -f | Fork into background |
✓ | -fo | Fork into background once | |
✓ | ✓ | -F filename | Use other configuration file |
✓ | ✓ | -g | Gateway locally forwarded ports |
✓ | +g | Don’t gateway locally forwarded ports | |
✓ | -h | Print help message | |
✓ | ✓ | -i filename | Select identity file |
✓ | -I string | Initialization string for external-key provider | |
✓ | -I device | Choose smartcard device | |
✓ | -k | Disable Kerberos ticket forwarding | |
✓ | ✓ | -l username | Remote username |
✓ | ✓ | -L port1:host2: port2 | Local port forwarding |
✓ | ✓ | -m algorithm | Select MAC algorithm |
✓ | -M | Do not execute remote command | |
✓ | ✓ | -n | Redirect stdin from /dev/null |
2 | -N | Execute no remote command | |
✓ | ✓ | -o “keyword value” | Set configuration keyword |
✓ | ✓ | -p port | Select TCP port number |
✓ | ✓ | -P | Use nonprivileged port |
✓ | ✓ | -q | Quiet mode |
✓ | ✓ | -R port1:host2: port2 | Remote port forwarding |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access