Lines Matching refs:agent
1 # $OpenBSD: agent.sh,v 1.7 2007/11/25 15:35:09 jmc Exp $
4 tid="simple agent test"
11 trace "start agent"
15 fail "could not start ssh-agent: exit code $r"
24 # generate user key for agent
25 rm -f $OBJ/$t-agent
26 ${SSHKEYGEN} -q -N '' -t $t -f $OBJ/$t-agent ||\
27 fail "ssh-keygen for $t-agent failed"
29 cat $OBJ/$t-agent.pub >> $OBJ/authorized_keys_$USER
30 # add privat key to agent
31 ${SSHADD} $OBJ/$t-agent > /dev/null 2>&1
46 trace "simple connect via agent"
54 trace "agent forwarding"
58 fail "ssh-add -l via agent fwd proto $p failed (exit code $?)"
63 fail "agent fwd proto $p failed (exit code $?)"
67 trace "delete all agent keys"
73 trace "kill agent"