[pass] use password in remote session

Dominic Sonntag dominic.sonntag at unitedprint.com
Wed Apr 6 09:45:47 CEST 2016


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


More information about the Password-Store mailing list