SSH Command-Line Configuration
Objective[edit]
Create an alias for SSH hosts, including ssh command line options.
SSH config file[edit]
Location[edit]
~/.ssh/config (powershell and bash)
Basic settings[edit]
Host littledamien HostName littledamien.com User username
Now, from the command line, all that's necessary is
> ssh littledamien
Common Options[edit]
Portto specify a non-default ssh portIdentityFile(This is a requirement for AWS, for example.)[1]
Notes[edit]
- ↑ ssh_config(5) (Linux man page)