Posted over 11 years ago. Visible to the public.

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 ""

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/" || ssh-add -k ~/.ssh/firstname.lastname

Owner of this card:

Henning Koch
Last edit:
4 months ago
by Simon Hofmann
Posted by Henning Koch to makandra orga
This website uses short-lived cookies to improve usability.
Accept or learn more