2 export KRB5CCNAME=/tmp/krb5cc_$(id -u).root
3 export KRBTKFILE=/dev/null
7 [ -z "$hostopt" ] && hostopt="${HOSTNAME}"
8 [ -z "$hostopt" ] && hostopt=`uname -n 2>/dev/null || echo unknown`
9 keys=~/.ssh/id_rsa_root
13 unset SSH_AUTH_SOCK SSH_AGENT_PID
14 eval $(keychain --eval --host "$hostopt-root")
23 echo "Loading default keys (lifetime $lifetime)..."
24 with-keys ssh-add -t $lifetime "$@" $keys
27 echo "Loading keys (lifetime $lifetime):" "$@"
28 with-keys ssh-add -t $lifetime "$@"
40 with-keys ssh -l root "$@"
43 if [ -z "$command" ]; then
44 echo "Usage: $0 init" >&2
47 echo " $0 destroy" >&2
49 echo " $0 ssh [args]" >&2
52 echo Executing: "$command" "$@"
53 with-keys "$command" "$@"