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!

Copy
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:

Copy
ssh-add -l | grep -q "$(ssh-keygen -l -f ~/.ssh/firstname.lastname.pub)" || ssh-add -k ~/.ssh/firstname.lastname

Owner of this card:

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