Load ssh-keys for one hour

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2017-05-14 22:02:29 +02:00
parent d5c82b31e2
commit ab75149d87
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 -t 900 -
vault read -field=private "/secret/ssh-key/\$1" | exec ssh-add -t 3600 -
EOF
for KEY_NAME in $@; do