Hi,

when administrating a remote server, I login via SSH with key
authentication. Is there a good way to use my local password store
there, e.g. for getting a database password?

I could do (from my local machine):

ssh remoteserver mysql -u root -P$(pass remoteserver/mysql/root | head -n 1)

But is there a way to do something like this from the server's bash?
e.g.:

local$ ssh remoteserver
remoteserver$ mysql -u root -P$(pass remoteserver/mysql/root | head -n 1)

Maybe this could be done with something like SSH key forwarding? And
probably the password-store needs to exist on the server, too.

Kind regards
Dominic
_______________________________________________
Password-Store mailing list
[email protected]
http://lists.zx2c4.com/mailman/listinfo/password-store

Reply via email to