Below you’ll find my SSH tips and tricks. These are mostly as a note to myself, but you might find them interesting.
Generate SSH Key
I’ve started to use ED25519 SSH keys. Here’s how I generate them:
Note: If you’re generating a SSH key that you will be using with Nutanix Calm, right now there is a bug that requires the key format to be PEM.
SSH Config File
.ssh directory, I also have a file
~/.ssh/config which has a bunch of hosts declared in it. Those hosts each have their own configuration and then are assigned a short name. Below is an excerpt:
This allows me to type
ssh server01 instead of
ssh -i ~/.ssh/id_la_ed25519 email@example.com. Once you start getting into more and more complicated SSH connections and configurations, you can see how this would save you a lot of time.
SSH Directory Permissions
I always end up looking up the proper ownership for
.ssh directories, so rather than searching every time, here it is.