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" $keys)
20 unset SSH_AUTH_SOCK SSH_AGENT_PID
21 eval $(keychain --eval --host "$hostopt-root")
30 echo "Loading default keys (lifetime $lifetime)..."
31 with-agent ssh-add -t $lifetime "$@" $keys
34 echo "Loading keys (lifetime $lifetime):" "$@"
35 with-agent ssh-add -t $lifetime "$@"
47 with-keys ssh -l root "$@"
50 if [ -z "$command" ]; then
51 echo "Usage: $0 init" >&2
54 echo " $0 destroy" >&2
56 echo " $0 ssh [args]" >&2
59 echo Executing: "$command" "$@"
60 with-agent "$command" "$@"