summaryrefslogtreecommitdiff
path: root/.local/bin/id-init
blob: 0634fe433d0295012358f5531fd6641298309f99 (plain)
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