The echo functions as the enter key would. Secret-tool lookup keepass Passwords | keepassxc -pw-stdin ~/Secured/Passwords.kdbx & sleep 3 echo '' touch KeePassLogin & chmod +x KeePassLogin & nano KeePassLogin The following is a little bash script.Ĭrack open your terminal. With that said, I have a solution to the issue in the comments about the terminal hanging. I have no experience of them, though I have looked into them and they are used for authentication, which is what you want to do. Otherwise, you may prefer to look into getting a yubikey. Heed the security implications, if you simply prefer to have locally stored passwords and have no other persons accessing the computer then this should be just fine.
This option remains significantly less secure than supplying the password yourself while using KeepPassXC, but the well informed user should have the freedom to make the balance between security and convenience. Next to a label, you are providing an attribute (here we choose "keepass") and a value (you can use the name of your database () or another string that should not contain spaces).Īfter login, you can then launch and unlock KeePassXC with the command secret-tool lookup keepass | keepassxc -pw-stdin. You can do this with the "Passwords and Keys" tool or with the command: secret-tool store -label="KeePass " keepass
You will need to install libsecret-tools for this to work.įirst you need to store the KeePassXC password in the Gnome keyring. Your password is stored in an unreadable form, and one needs to be logged in as your user to be able to open KeePassXC or read the password. This compromises security quite seriously compared to entering the password on opening directly, because your password is stored unencrypted in a file on your system.Ī more secure option is to use another password vault, such as Gnome Keyring ( Source). Thus, in a most simple way, you can automatically open a KeePassXC database with a command like: echo | keepassxc -pw-stdin.
Using KeePassXC gives you complete control over your passwords by storing everything in a secure local file instead of on a remote server, which for many users is preferable given the prevalence of data breaches. KeePassXC is more difficult to use than commercial alternatives like 1Password (opens in new tab) and LastPass (opens in new tab), but it’s not targeted at the casual user. We’d still recommend the native KeePassXC client over KeePass if you primarily work on Linux, as it integrates more cleanly with the operating system.
KeePass offers more options and control than KeePassXC, particularly on Windows, so if you plan to use Windows more often, we suggest you check it out. (Image credit: KeePassXC) The competitionĭevelopment of KeePassXC began because KeePass (opens in new tab) was only available for Windows, but now that KeePass is installable on other desktop platforms using Mono, KeePass is a legitimate choice for those who need a cross-platform password manager.
KeePassXC is free for personal and commercial use, but you can support the developers through Patreon.