Lines Matching refs:OBJ

8 rm -f $SSH_AUTH_SOCK $OBJ/agent.log $OBJ/host_[abcx]* $OBJ/user_[abcx]*
9 rm -f $OBJ/sshd_proxy_host* $OBJ/ssh_output* $OBJ/expect_*
10 rm -f $OBJ/ssh_proxy[._]* $OBJ/command $OBJ/authorized_keys_*
14 $SSHKEYGEN -q -t ed25519 -C host_$h -N '' -f $OBJ/host_$h || \
29 SSH_AUTH_SOCK="$OBJ/agent.sock"
33 ${SSHAGENT} ${EXTRA_AGENT_ARGS} -d -a $SSH_AUTH_SOCK > $OBJ/agent.log 2>&1 &
52 $OBJ/ssh_proxy > $OBJ/ssh_proxy.bak
53 cat << _EOF > $OBJ/ssh_proxy
58 cp $OBJ/ssh_proxy $OBJ/ssh_proxy_noid
61 cat << _EOF >> $OBJ/ssh_proxy
66 …ProxyCommand ${SUDO} env SSH_SK_HELPER=\"$SSH_SK_HELPER\" ${OBJ}/sshd-log-wrapper.sh -i -f $OBJ/ss…
69 cat << _EOF >> $OBJ/ssh_proxy_noid
73 …ProxyCommand ${SUDO} env SSH_SK_HELPER=\"$SSH_SK_HELPER\" ${OBJ}/sshd-log-wrapper.sh -i -f $OBJ/ss…
76 cat $OBJ/ssh_proxy.bak >> $OBJ/ssh_proxy
77 cat $OBJ/ssh_proxy.bak >> $OBJ/ssh_proxy_noid
84 rm -f $OBJ/known_hosts
86 (printf "host_$h " ; cat $OBJ/host_${h}.pub) >> $OBJ/known_hosts
90 egrep -vi '(hostkey|pidfile)' $OBJ/sshd_proxy \
91 > $OBJ/sshd_proxy.bak
93 cp $OBJ/sshd_proxy.bak $OBJ/sshd_proxy_host_$h
94 cat << _EOF >> $OBJ/sshd_proxy_host_$h
96 Hostkey $OBJ/host_$h
98 cp $OBJ/sshd_proxy_host_$h $OBJ/sshd_proxy_host_${h}.bak
102 cat >> $OBJ/command << EOF
113 chmod a+x $OBJ/command
114 >$OBJ/authorized_keys_$USER
117 (printf "%s" "restrict,agent-forwarding,command=\"$OBJ/command\" ";
118 cat $K) >> $OBJ/authorized_keys_$USER
127 echo USERAUTH > $OBJ/expect_$h
128 printf "publickey " >> $OBJ/expect_$h
129 cat $K >> $OBJ/expect_$h
130 echo AGENT >> $OBJ/expect_$h
131 $SSHADD -L | cut -d' ' -f1-2 | sort >> $OBJ/expect_$h
132 ${SSH} -F $OBJ/ssh_proxy -oIdentityFile=$K \
133 host_$h true > $OBJ/ssh_output || fatal "test ssh $h failed"
134 cmp $OBJ/expect_$h $OBJ/ssh_output || fatal "unexpected output"
139 p11_ssh_add -q -h host_x -s ${TEST_SSH_PKCS11} -H $OBJ/known_hosts ||
143 ${SSH} -F $OBJ/ssh_proxy -oIdentityFile=$K \
144 host_$h true > $OBJ/ssh_output && fatal "test ssh $h succeeded"
149 p11_ssh_add -q -h host_a -h host_b -s ${TEST_SSH_PKCS11} -H $OBJ/known_hosts ||
153 echo USERAUTH > $OBJ/expect_$h
154 printf "publickey " >> $OBJ/expect_$h
155 cat $K >> $OBJ/expect_$h
156 echo AGENT >> $OBJ/expect_$h
157 echo NONE >> $OBJ/expect_$h
158 ${SSH} -F $OBJ/ssh_proxy -oIdentityFile=$K \
159 host_$h true > $OBJ/ssh_output || fatal "test ssh $h failed"
160 cmp $OBJ/expect_$h $OBJ/ssh_output || fatal "unexpected output"
166 -s ${TEST_SSH_PKCS11} -H $OBJ/known_hosts || fatal "failed to add keys"
172 _command="echo LOCAL ; ${OBJ}/command ; echo REMOTE; ${SSH} -AF $OBJ/ssh_proxy -oIdentityFile=$BK h…
174 cat $BK) > $OBJ/authorized_keys_a
175 grep -vi AuthorizedKeysFile $OBJ/sshd_proxy_host_a.bak > $OBJ/sshd_proxy_host_a
176 echo "AuthorizedKeysFile $OBJ/authorized_keys_a" >> $OBJ/sshd_proxy_host_a
178 echo LOCAL > $OBJ/expect_a
179 echo USERAUTH >> $OBJ/expect_a
180 printf "publickey " >> $OBJ/expect_a
181 cat $AK >> $OBJ/expect_a
182 echo AGENT >> $OBJ/expect_a
183 $SSHADD -L | cut -d' ' -f1-2 | sort >> $OBJ/expect_a
184 echo REMOTE >> $OBJ/expect_a
185 echo USERAUTH >> $OBJ/expect_a
186 printf "publickey " >> $OBJ/expect_a
187 cat $BK >> $OBJ/expect_a
188 echo AGENT >> $OBJ/expect_a
189 echo NONE >> $OBJ/expect_a
190 ${SSH} -AF $OBJ/ssh_proxy -oIdentityFile=$AK \
191 host_a whatever > $OBJ/ssh_output || fatal "test ssh $h failed"
192 cmp $OBJ/expect_a $OBJ/ssh_output || fatal "unexpected output"