Load keys for 900s and drop them from agent afterwards

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2017-05-02 16:08:55 +02:00
parent ec131cf685
commit 736cff1cc3
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -35,7 +35,7 @@ trap "rm ${HELPER}" EXIT
cat -s <<EOF > ${HELPER}
#!/bin/bash
vault read -field=private "/secret/ssh-key/\$1" | exec ssh-add -
vault read -field=private "/secret/ssh-key/\$1" | exec ssh-add -t 900 -
EOF
for KEY_NAME in $@; do