SSH Config Cheat Sheet/Basic host alias

Create a short alias in ~/.ssh/config.

Section: Client Config Basics

Basic host alias

sshconfig
sshconfig
Host web-prod
  HostName web01.example.com
  User deploy
  Port 22
  IdentityFile ~/.ssh/id_ed25519
Explanation

Create a short alias in ~/.ssh/config.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Client Config Basics
Global defaults
Set defaults that apply to all hosts.
OpenIn sheetsshconfigsame section
Pattern-based host block
Match groups of hosts with wildcard patterns.
OpenIn sheetsshconfigsame section
Canonicalize hostnames
Resolve short names into FQDNs automatically.
OpenIn sheetsshconfigsame section
Include extra config files
Split config into multiple files.
OpenIn sheetsshconfigsame section
Inspect merged config
Show the effective configuration for a host.
OpenIn sheetbashsame section
ProxyJump in config
Configure a jump host once for repeated use.
OpenIn sheetsshconfig2 tag match