Password management setup

As promised in the previous blog post. I'm going to write a manual-like document around setting up KeepassXC. This will be a continuously updated document as and how I learn more and better ways to do things. This also means that you are free to comment below regarding anything you know. I've split the text into sections for Linux, Windows, Mac and Android, so you can directly skip to the necessary sections. The other things that are platform independent are marked as common.

Password Manager

{admonition}
:class: note

- I've removed the [**rclone**](https://rclone.org/) section from this document since I've moved from rclone to 
[**Syncthing**](https://syncthing.net/) for cross-device synchronization. A separate post for rclone for backup will
be added in the future.

- [Syncthing and how it was setup](2023-03-05-syncthing-multi-device-setup.md)

- The link to setup backup mechanism using rclone will appear here

[The older version of this post is available in the Wayback Machine](https://web.archive.org/web/20230305141100/https://tanayseven.com/posts/2022-07-01-password-management-setup.html)

Prerequisites to setup

  1. Knowledge of Shell (for Linux)
  2. A desktop running Linux/Mac/Windows
  3. Syncthing setup and running
  4. A mobile running Android
  5. A pair of Yubikeys (I highly recommend a pair instead of a single one)

Installation of software

Linux (Arch)

Install KeePassXC (Arch Linux)

shell
sudo pacman -S keepassxc 

Mac/Windows

Download and install KeePassXC

Android

Install KeePass2 Android Password Safe from Google Play

Setting up Yubikey

Yubikey image Yubikey setup screenshot

Setting up KeePassXC

You need to decide a sufficiently strong password as the master password. In order to do that, do read my previous blog post linked here

  1. Create a new database

    KeePassXC create a new database
  2. Give a database name

    KeePassXC give a database name and description
  3. Choose database encryption settings Enter this as this and that as that

    KeePassXC choose encryption settings
  4. Enter master password (that you decided as stated at the start of this section)

    KeePassXC enter the master password
  5. Select Yubikey setup Add additional protection Yubikey configure Slot-2 Click Done

    KeePassXC select Yubikey setup KeePassXC Yubikey add challenge response KeePassXC insert Yubikey and hit refresh
  6. Select the Syncthing sync directory to save the database Touch the Yubikey

    KeePassXC save database file to password manage setup KeePassXC touch the yubikey to actually save the password

Your database file should now be saved in a Syncthing synchronised location. If you've done everything correctly to this point, you're all setup!

Once this is done, you can open the file synchronised via Syncthing in the other devices. Just make sure you don't cause a conflict by keeping multiple files and saving them on top of each other.

If you have any questions, please ask them in the comments box below.