When looking for a simple password manager that would work over ssh, I could find none. Everything seemed to be graphical, web based or complex. So I did what any hacker would do, I made one myself.
My password manager is a simple GPG wrapper script. All passwords and login details are in a single encrypted text file. The script decrypts it for you, starts a viewer or editor and re-encrypts afterwards when needed. It takes care of temporary files, backup and shredding of plain-texts.
This script fitted the need I had for a simple tool and has done exactly that for the better part of a decade now.