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}
|
cat -s <<EOF > ${HELPER}
|
||||||
#!/bin/bash
|
#!/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
|
EOF
|
||||||
|
|
||||||
for KEY_NAME in $@; do
|
for KEY_NAME in $@; do
|
||||||
|
|
Loading…
Add table
Reference in a new issue