summaryrefslogtreecommitdiff
path: root/.local/bin/id-init
blob: 72f8cbe9772f9d3059e420220686c9ebc14e8c10 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

tmpfile="$(mktemp)"
chmod 700 $tmpfile
echo "pass ssh" > $tmpfile
export SSH_ASKPASS="$tmpfile"
export SSH_ASKPASS_REQUIRE="force"
ssh-add
rm $tmpfile