ssh-pass
I've been using pass for a while now and I really like it. But I don't like putting passwords or passphrases into my system clipboard if I can help it: writing code to sniff the clipboard is child's play, so I'd like to avoid that attack vector if possible.
One place that I thought would be simple would be the SSH utility to add keys to your SSH Agent: ssh-add
. It should be possible to do something like this:
$ pass github/sinewalker|head -1|ssh-add github/sinewalker
Unfortunately this isn't so: ssh-add
doesn't accept your passphrase from STDIN when piped like this.
But, there is a way to do it.