Pass

From Lolly's Wiki
Revision as of 14:39, 18 September 2019 by Lollypop (talk | contribs) (Die Seite wurde neu angelegt: „=pass - The standard unix password manager= ==Tipps & Tricks== ===SSH=== To pass the password to the ssh password promt you need another tool, too: sshpass…“)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

pass - The standard unix password manager

Tipps & Tricks

SSH

To pass the password to the ssh password promt you need another tool, too: sshpass .

Obvious way

$ pass -c Customers/CustomerA/myuser@sshhost
$ ssh myuser@sshhost
Password:<paste the copied password>
myuser@sshhost:~$

Cooler way

Create the password entry

Put only the password at the first line (needed for sshpass).

$ pass edit Customers/CustomerA/myuser@sshhost
Create an alias
$ alias customer-sshhost='sshpass -f <(pass Customers/CustomerA/myuser@sshhost) ssh myuser@sshhost'
Use it
$ customer-sshhost
myuser@sshhost:~$


Links