2 export KRB5CCNAME=/tmp/krb5cc_$(id -u).root
3 export KRBTKFILE=/dev/null
9 [ -z "$hostopt" ] && hostopt="${HOSTNAME}"
10 [ -z "$hostopt" ] && hostopt=`uname -n 2>/dev/null || echo unknown`
11 keys=~/.ssh/id_rsa_root
15 unset SSH_AUTH_SOCK SSH_AGENT_PID
16 eval $(keychain --timeout $lifetime --eval --host "$hostopt-root" $keys)
22 unset SSH_AUTH_SOCK SSH_AGENT_PID
23 eval $(keychain --timeout $lifetime --eval --host "$hostopt-root")
32 echo "Loading default keys (lifetime $lifetime)..."
33 with-agent ssh-add -t ${lifetime}m "$@" $keys
36 echo "Loading keys (lifetime $lifetime):" "$@"
37 with-agent ssh-add -t ${lifetime}m "$@"
49 with-keys ssh -l root "$@"
52 if [ -z "$command" ]; then
53 echo "Usage: $0 init" >&2
56 echo " $0 destroy" >&2
58 echo " $0 ssh [args]" >&2
61 echo Executing: "$command" "$@"
62 with-agent "$command" "$@"