Using KeePassXC as an SSH key source

Normally, SSH keys are stored in .ssh/, which is quite insecure, even with locked behind a password. Additionally, this makes backing up ssh keys a bit more tedious.

KeePassXC to the rescue!

  1. Enable SSH Agent
  2. Import an ssh key.
    • Entries -> New Entry
    • Set the password to your ssh key's password
    • Under the advanced tab, add your ssh private key file as an attachment
    • Under the SSH Agent tab, select the private key attachment
    • (optional) tick the box: Add key to agent when database is opened / unlocked
  3. Check whether it works with ssh-add -l in the terminal. Your key should appear there.

Your key is now embedded in your database!

This page was last edited on 2025-11-16 13:51

Powered by Wiki|Docs

This page was last edited on 2025-11-16 13:51

clippy
?

Powered by Wiki|Docs