Lines Matching full:ssh
8 fail "ssh-add -l did not fail with exit code 2"
12 eval `${SSHAGENT} ${EXTRA_AGENT_ARGS} -s` >`ssh_logfile ssh-agent`
15 fatal "could not start ssh-agent: exit code $r"
21 fatal "could not start second ssh-agent: exit code $r"
26 fail "ssh-add -l did not fail with exit code 1"
31 || fatal "ssh-keygen failed"
40 fatal "ssh-keygen for $t-agent failed"
50 fail "ssh-add failed exit code $?"
55 fail "ssh-add failed exit code $?"
71 fail "ssh-add -l failed: exit code $r"
77 fail "ssh-add -L failed: exit code $r"
81 ${SSH} -F $OBJ/ssh_proxy somehost exit 52
84 fail "ssh connect with failed (exit code $r)"
89 if [ "$t" = "ssh-dss" ]; then
90 echo "PubkeyAcceptedAlgorithms +ssh-dss" >> $OBJ/ssh_proxy
91 echo "PubkeyAcceptedAlgorithms +ssh-dss" >> $OBJ/sshd_proxy
93 ${SSH} -F $OBJ/ssh_proxy -i $OBJ/$t-agent.pub -oIdentitiesOnly=yes \
97 fail "ssh connect with failed (exit code $r)"
102 ${SSH} -A -F $OBJ/ssh_proxy somehost ${SSHADD} -l > /dev/null 2>&1
105 fail "ssh-add -l via agent fwd failed (exit code $r)"
107 ${SSH} "-oForwardAgent=$SSH_AUTH_SOCK" -F $OBJ/ssh_proxy somehost ${SSHADD} -l > /dev/null 2>&1
110 fail "ssh-add -l via agent path fwd failed (exit code $r)"
112 ${SSH} -A -F $OBJ/ssh_proxy somehost \
113 "${SSH} -F $OBJ/ssh_proxy somehost exit 52"
120 ${SSH} "-oForwardAgent=$FW_SSH_AUTH_SOCK" -F $OBJ/ssh_proxy somehost ${SSHADD} -l > /dev/null 2>&1
123 fail "ssh-add -l via agent path fwd of different agent failed (exit code $r)"
125 ${SSH} '-oForwardAgent=$FW_SSH_AUTH_SOCK' -F $OBJ/ssh_proxy somehost ${SSHADD} -l > /dev/null 2>&1
128 fail "ssh-add -l via agent path env fwd of different agent failed (exit code $r)"
131 # Remove keys from forwarded agent, ssh-add on remote machine should now fail.
135 fail "ssh-add -D failed: exit code $r"
137 ${SSH} '-oForwardAgent=$FW_SSH_AUTH_SOCK' -F $OBJ/ssh_proxy somehost ${SSHADD} -l > /dev/null 2>&1
140 fail "ssh-add -l with different agent did not fail with exit code 1 (exit code $r)"
146 if [ "$t" != "ssh-dss" ]; then
148 ${SSH} -F $OBJ/ssh_proxy -i $OBJ/$t-agent.pub \
153 fail "ssh connect with failed (exit code $r)"
164 fail "ssh-add -D failed: exit code $r"
170 fail "ssh-add -l returned unexpected exit code: $r"
176 fail "ssh-add failed exit code $?"
182 fail "ssh-add -l failed: exit code $r"
200 ${SSHADD} -qdk $OBJ/ssh-ed25519-agent || fail "ssh-add -d ed25519 failed"
201 check_key_absent ssh-ed25519
202 check_key_present ssh-ed25519-cert-v01@openssh.com
204 ${SSHADD} $OBJ/ssh-ed25519-agent-private >/dev/null 2>&1 || \
205 fail "ssh-add failed exit code $?"
206 check_key_present ssh-ed25519
209 ${SSHADD} -qd $OBJ/ssh-ed25519-agent || fail "ssh-add -d ed25519 failed"
210 check_key_absent ssh-ed25519
211 check_key_absent ssh-ed25519-cert-v01@openssh.com
213 ${SSHADD} $OBJ/ssh-ed25519-agent-private >/dev/null 2>&1 || \
214 fail "ssh-add failed exit code $?"
215 check_key_present ssh-ed25519
217 ${SSHADD} -qd - < $OBJ/ssh-ed25519-agent-cert.pub || fail "ssh-add -d - failed"
218 check_key_present ssh-ed25519
219 check_key_absent ssh-ed25519-cert-v01@openssh.com
221 ${SSHADD} -qd - < $OBJ/ssh-ed25519-agent.pub || fail "ssh-add -d - failed"
222 check_key_absent ssh-ed25519
223 check_key_absent ssh-ed25519-cert-v01@openssh.com