Load ssh-keys for one hour
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
d5c82b31e2
commit
ab75149d87
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 -t 900 -
|
||||
vault read -field=private "/secret/ssh-key/\$1" | exec ssh-add -t 3600 -
|
||||
EOF
|
||||
|
||||
for KEY_NAME in $@; do
|
||||
|
|
Loading…
Reference in a new issue