SSH Keys

SSH keys are really neat! The DigitalOcean article on How To Set Up SSH Keys does an excellent job on explaining what SSH keys are and how to create them. In short, SSH keys are much more secure than password based authentication. In this post I will cover a few tips that I find myself frequently searching.


Create a 4096 bit SSH key. When creating the key, you can specify a passphrase.

ssh-keygen -t rsa -b 4096

Sometimes you might want to remove the passphrase from an SSH key. The command below will allow you to either remove a passphrase or add one to an existing SSH key.

ssh-keygen -p -f ~/.ssh/id_rsa


Ed25519 uses Elliptic-curve cryptography (ECC). Ed25519 key pairs can be generated with:

ssh-keygen -t ed25519


Sometimes I wrote posts for myself to easily reference and this is one of those times. However, I hope that this article is useful for others.