Load keys for 900s and drop them from agent afterwards
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
ec131cf685
commit
736cff1cc3
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue