add ssh pass ability to agent-start

* invokes agent-askpass when a passphrase protected key should be added via ssh-add
This commit is contained in:
Steven Agyekum 2021-08-02 19:16:39 +02:00
parent d0cc021e84
commit eb3ddd767e

View file

@ -1,4 +1,4 @@
#!/bin/sh
source agent-start "${1:-default}"
cat - | tr -d '\r' | ssh-add - >/dev/null
cat - | tr -d '\r' | DISPLAY=1 SSH_ASKPASS=agent-askpass ssh-add - >/dev/null