Create a new SSH key pair

Before starting, create a new entry in KeePass for your SSH key and create a new password. See the Security Guidelines for password policies.

Make sure you use a up-to-date SSH version to use secure values for the key generation, as for now at least 2048 Bit RSA!

ssh-keygen -f ~/.ssh/firstname.lastname -C "firstname.lastname@makandra.de"

When entering the password for your key, copy it once from KeePass (via the clipboard) and type it manually the second time (reveal it in KeePass).

You might want to add your private key identity to the authentication agent and put this in your .bashrc:

ssh-add -l | grep -q "$(ssh-keygen -l -f ~/.ssh/firstname.lastname.pub)" || ssh-add -k ~/.ssh/firstname.lastname
Henning Koch almost 12 years ago
This website uses short-lived cookies to improve usability.
Accept or learn more