Password Manager For The Command Line ?
Hi,
On my workstation and my laptop I’m using KeePassXC to store login credentials for my websites. The database is stored in my OwnCloud share, so it’s synchronized between my two computers.
Ideally I’d like to have something similar for my servers, but command-line driven. I know these tools exist but I haven’t tested them yet. What I have in mind is a command-line password manager that stores the database in an encrypted database – like KeePassXC – and then I could eventually store this file in a private Gitlab repo to centralize it and access it from all my servers.
Can you recommend any particular command line password manager ?
Any recommendations / caveats for this kind of setup ?
Cheers from the locked down South of France,
Niki
—
Microlinux – Solutions informatiques durables
7, place de l’église – 30730 Montpezat Site : https://www.microlinux.fr Blog : https://blog.microlinux.fr Mail : info@microlinux.fr Tél. : 04 66 63 10 32
Mob. : 06 51 80 12 12
7 thoughts on - Password Manager For The Command Line ?
Hi Niki ,
I use “pass” to manage my password , it’s based on gnuPG , you can find more info on the web site => https://www.passwordstore.org/ . For sync you can use Git .
Seb.
Le Mon, Nov 23, 2020 at 09:24:18AM +0100, Nicolas Kovacs a
+1 -works well and can be used via SSH link as well if set up properly.
Am 23.11.20 um 09:24 schrieb Nicolas Kovacs:
Self hosted Bitwarden:
-> https://bitwarden.com/help/article/cli/
-> https://bitwarden.com/help/hosting/
-> https://bitwarden.com/open-source/
There is also a command line interface for keepass – if you wouldn’t mind perl dependency.
https://sourceforge.net/projects/kpcli/
—
Marek Blaha
Red Hat Czech s.r.o. Software Engineer
I’ve not personally used the CLI, but there is a command line interface for KeePassXC too, see here for usage:
http://manpages.ubuntu.com/manpages/bionic/man1/keepassxc-cli.1.html
Hope that helps.
I’ve been using “yapet” for quite awhile: https://yapet.guengel.ch/
It’s already packaged in EPEL.
The password store is in a single file so it’s easy to copy between servers. It’s a curses interface vs. CLI, though…
-Greg
Le 23/11/2020 à 14:37, Greg Bailey a écrit :
Thank you very much everybody for all your numerous suggestions.
This all looks very promising, and I’ll test all the suggested solutions over the next few days.
Cheers,
Niki
—
Microlinux – Solutions informatiques durables
7, place de l’église – 30730 Montpezat Site : https://www.microlinux.fr Blog : https://blog.microlinux.fr Mail : info@microlinux.fr Tél. : 04 66 63 10 32
Mob. : 06 51 80 12 12