If you’re anything like me, you probably log in and out of a half dozen remote servers (or these days, local virtual machines) on a daily basis.
And if you’re even more like me, you have trouble remembering all of the various usernames, remote addresses and command line options for things like specifying a non-standard connection port.
Here’s something really powerful.
Let’s cover the options used above:
HostName - The server host (domain or ipaddress)
Port - The port to use when connecting
User - The username to log in with
IdentityFile - The SSH key identity to use to log in with, if using SSH key access
IdentitiesOnly - Yes to specify only attempting to log in via SSH key
PubkeyAuthentication - No to specify you wish to bypass attempting SSH key authentication
Let’s Loggin In
No need to remember Username/IdentityFile/Port etc