Lines Matching refs:OBJ

6 rm -f $OBJ/authorized_keys_$USER $OBJ/user_ca_key* $OBJ/user_key*
7 rm -f $OBJ/authorized_principals_$USER $OBJ/cert_user_key*
9 mv $OBJ/sshd_proxy $OBJ/sshd_proxy.orig
10 mv $OBJ/ssh_proxy $OBJ/ssh_proxy.orig
13 ${SSHKEYGEN} -q -N '' -t ed25519 -f $OBJ/user_ca_key ||\
17 ${SSHKEYGEN} -q -N '' -t ed25519 -f $OBJ/user_key1 || \
19 ${SSHKEYGEN} -q -N '' -t rsa -f $OBJ/user_key2 || \
21 ${SSHKEYGEN} -q -N '' -t rsa -f $OBJ/user_key3 || \
23 ${SSHKEYGEN} -q -N '' -t dsa -f $OBJ/user_key4 || \
25 ${SSHKEYGEN} -q -s $OBJ/user_ca_key -I "regress user key for $USER" \
26 -z $$ -n ${USER},mekmitasdigoat $OBJ/user_key3 ||
30 mv $OBJ/user_key3-cert.pub $OBJ/cert_user_key3.pub
32 grep -v IdentityFile $OBJ/ssh_proxy.orig > $OBJ/ssh_proxy
34 opts="-oProtocol=2 -F $OBJ/ssh_proxy -oIdentitiesOnly=yes"
35 certopts="$opts -i $OBJ/user_key3 -oCertificateFile=$OBJ/cert_user_key3.pub"
37 echo mekmitasdigoat > $OBJ/authorized_principals_$USER
38 cat $OBJ/user_key1.pub > $OBJ/authorized_keys_$USER
39 cat $OBJ/user_key2.pub >> $OBJ/authorized_keys_$USER
43 grep -v "Protocol" $OBJ/sshd_proxy.orig
46 echo "TrustedUserCAKeys $OBJ/user_ca_key.pub"
47 echo "AuthorizedPrincipalsFile $OBJ/authorized_principals_%u"
51 ) > $OBJ/sshd_proxy
58 ${SSH} $opts -i $OBJ/user_key1 proxy true || fatal "key1 failed"
59 ${SSH} $opts -i $OBJ/user_key2 proxy true || fatal "key2 failed"
65 ${SSH} $opts -i $OBJ/user_key1 proxy true || fatal "key1 failed"
66 ${SSH} $opts -i $OBJ/user_key2 proxy true || fatal "key2 failed"
72 ${SSH} $opts -i $OBJ/user_key1 proxy true || fatal "key1 failed"
73 ${SSH} $opts -i $OBJ/user_key2 proxy true && fatal "key2 succeeded"
79 ${SSH} $opts -i $OBJ/user_key1 proxy true && fatal "key1 succeeded"
80 ${SSH} $opts -i $OBJ/user_key2 proxy true && fatal "key2 succeeded"
87 ${SSH} $opts -i $OBJ/user_key1 proxy true && fatal "key1 succeeded"
88 ${SSH} $opts -i $OBJ/user_key2 proxy true || fatal "key2 failed"
95 ${SSH} $opts -i $OBJ/user_key1 proxy true || fatal "key1 failed"
96 ${SSH} $opts -i $OBJ/user_key4 proxy true && fatal "key4 succeeded"