Command-line password manager that uses SSH key to authenticate

command linepasswordsoftware-rec

I'm looking for a command-line password manager, much like pwsafe, but one that features SSH key authentication. That is, I'd like to be able to add my SSH key to the authentication when opening the password file, so that I do not have to remember yet another password but can use my SSH key to unlock my other passwords.

Pwsafe is compatible with Counterpane's Win32 PasswordSafe, which is a feature I do not need. I only need command-line access and the possibility to easily copy passwords to the clipboard.

Does such a program exist?

Best Answer

I like using KeePass, but it doesn't support command-line usage directly. It does sport an API though, and some others have tried to mend the problem by supplying a command-line frontend using that API. All pulled from the forum thread

  1. A python frontend to the Keepass API: python-keepass
  2. KPcli

Other:

  1. Password Gorilla, written in tcl/tk, supposed to handle command-line usage based on pwsafe.

None of them are able to use your ssh key, probably since password storage isn't really a prime candidate for public key encryption (even though it certainly would be convenient). With KeePass it's possible to use your private ssh keyfile as additional cryptographic tie-down, but that's more for adding complexity rather than reducing it.

Related Question