github.com_burnett01_rsync-.../agent-add
Steven Agyekum eb3ddd767e add ssh pass ability to agent-start
* invokes agent-askpass when a passphrase protected key should be added via ssh-add
2021-08-02 19:16:39 +02:00

4 lines
No EOL
123 B
Bash

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