Fedora - Managing credentials with KeePassXC - Printable Version +- Sick Gaming (https://www.sickgaming.net) +-- Forum: Computers (https://www.sickgaming.net/forum-86.html) +--- Forum: Linux, FreeBSD, and Unix types (https://www.sickgaming.net/forum-88.html) +--- Thread: Fedora - Managing credentials with KeePassXC (/thread-91884.html) |
Fedora - Managing credentials with KeePassXC - xSicKxBot - 09-09-2019 Managing credentials with KeePassXC <div style="margin: 5px 5% 10px 5%;"><img src="https://www.sickgaming.net/blog/wp-content/uploads/2019/08/managing-credentials-with-keepassxc.png" width="899" height="689" title="" alt="" /></div><div><p>A <a href="https://fedoramagazine.org/manage-your-passwords-with-bitwarden-and-podman/">previous article</a> discussed password management tools that use server-side technology. These tools are very interesting and suitable for a cloud installation.<br />In this article we will talk about KeePassXC, a simple multi-platform open source software that uses a local file as a database.<br />The main advantage of this type of password management is simplicity. No server-side technology expertise is required and can therefore be used by any type of user.</p> <h2>Introducing KeePassXC</h2> <p>KeePassXC is an open source cross platform password manager: its development started as a fork of KeePassX, a good product but with a not very active development. It saves the secrets in an encrypted database with AES algorithm using 256 bit key, this makes it reasonably safe to save the database in a cloud drive storage such as pCloud or Dropbox.</p> <p>In addition to the passwords, KeePassXC allows you to save various information and attachments in the encrypted wallet. It also has a valid password generator that helps the user to correctly manage his credentials.</p> <h2>Installation</h2> <p>The program is available both in the standard Fedora repository and in the Flathub repository. Unfortunately the integration with the browser does not work with the application running in the sandbox, so I suggest to install the program via dnf:</p> <pre class="wp-block-code"> <div class="codecolorer-container text default" style="overflow:auto;border:1px solid #9F9F9F;width:435px"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace">sudo dnf install keepassxc</div></div> </pre> <h2>Creating your wallet</h2> <p>To create a new database there are two important steps:</p> <ul> <li>Choose the encryption settings: the default settings are reasonably safe, increasing the transform rounds also increases the decryption time.</li> <li>Choose the master key and additional protections: the master key must be easy to remember (if you lose it your wallet is lost!) but strong enough, a passphrase with at least 4 random words can be a good choice. As additional protection you can choose a key file (remember: you must always have it available otherwise you cannot open the wallet) and / or a YubiKey hardware key. </li> </ul> <figure class="wp-block-image"><img src="https://www.sickgaming.net/blog/wp-content/uploads/2019/08/managing-credentials-with-keepassxc.png" alt="" class="wp-image-29170" /></figure> <figure class="wp-block-image"><img src="https://www.sickgaming.net/blog/wp-content/uploads/2019/08/managing-credentials-with-keepassxc-1.png" alt="" class="wp-image-29171" /></figure> <p>The database file will be saved to the file system. If you want to share with other computers / devices you can save it on a USB key or in a cloud storage like pCloud or Dropbox. Of course, if you choose a cloud storage, a particularly strong master password is recommended, better if accompanied by additional protection.</p> <h2>Creating your first entry</h2> <p>Once the database has been created, you can start creating your first entry. For a web login specify a username, password and url in the Entry tab. Optionally you can specify an expiration date for the credentials based on your personal policy: also by pressing the button on the right the favicon of the site is downloaded and associated as an icon of the entry, this is a nice feature.</p> <figure class="wp-block-image"><img src="https://www.sickgaming.net/blog/wp-content/uploads/2019/08/managing-credentials-with-keepassxc-2.png" alt="" class="wp-image-29172" /></figure> <figure class="wp-block-image"><img src="https://www.sickgaming.net/blog/wp-content/uploads/2019/08/managing-credentials-with-keepassxc-3.png" alt="" class="wp-image-29173" /></figure> <p>KeePassXC also offers a good password / passphrase generator, you can choose length and complexity and check the degree of resistance to a brute force attack:</p> <figure class="wp-block-image"><img src="https://www.sickgaming.net/blog/wp-content/uploads/2019/08/managing-credentials-with-keepassxc-4.png" alt="" class="wp-image-29175" /></figure> <h2>Browser integration</h2> <p>KeePassXC has an extension available for all major browsers. The extension allows you to fill in the login information for all the entries whose URL is specified.</p> <p>Browser integration must be enabled on KeePassXC (Tools menu -> Settings) specifying which browsers you intend to use:</p> <figure class="wp-block-image"><img src="https://www.sickgaming.net/blog/wp-content/uploads/2019/08/managing-credentials-with-keepassxc-5.png" alt="" class="wp-image-29181" /></figure> <p>Once the extension is installed, it is necessary to create a connection with the database. To do this, press the extension button and then the Connect button: if the database is open and unlocked the extension will create an association key and save it in the database, the key is unique to the browser so I suggest naming it appropriately :</p> <figure class="wp-block-image"><img src="https://www.sickgaming.net/blog/wp-content/uploads/2019/08/managing-credentials-with-keepassxc-6.png" alt="" class="wp-image-29177" /></figure> <p>When you reach the login page specified in the Url field and the database is unlocked, the extension will offer you all the credentials you have associated with that page:</p> <figure class="wp-block-image"><img src="https://www.sickgaming.net/blog/wp-content/uploads/2019/08/managing-credentials-with-keepassxc-7.png" alt="" class="wp-image-29178" /></figure> <p>In this way, browsing with KeePassXC running you will have your internet credentials available without necessarily saving them in the browser.</p> <h2>SSH agent integration</h2> <p>Another interesting feature of KeePassXC is the integration with SSH. If you have ssh-agent running KeePassXC is able to interact and add the ssh keys that you have uploaded as attachments to your entries.</p> <p>First of all in the general settings (Tools menu -> Settings) you have to enable the ssh agent and restart the program:</p> <figure class="wp-block-image"><img src="https://www.sickgaming.net/blog/wp-content/uploads/2019/08/managing-credentials-with-keepassxc-8.png" alt="" class="wp-image-29179" /></figure> <p>At this point it is required to upload your ssh key pair as an attachment to your entry. Then in the “SSH agent” tab select the private key in the attachment drop-down list, the public key will be populated automatically. Don’t forget to select the two checkboxes above to allow the key to be added to the agent when the database is opened / unlocked and removed when the database is closed / locked:</p> <figure class="wp-block-image"><img src="https://www.sickgaming.net/blog/wp-content/uploads/2019/08/managing-credentials-with-keepassxc-9.png" alt="" class="wp-image-29180" /></figure> <p>Now with the database open and unlocked you can log in ssh using the keys saved in your wallet.</p> <p>The only limitation is in the maximum number of keys that can be added to the agent: ssh servers do not accept by default more than 5 login attempts, for security reasons it is not recommended to increase this value.</p> </div> https://www.sickgaming.net/blog/2019/08/23/managing-credentials-with-keepassxc/ |