1 2 3 4 5 6 7 8 9
#!/bin/sh tmpfile="$(mktemp)" chmod 700 $tmpfile echo "pass homelab/ssh" > $tmpfile export SSH_ASKPASS="$tmpfile" export SSH_ASKPASS_REQUIRE="force" ssh-add rm $tmpfile