Home | History | Annotate | Download | only in regress

Lines Matching refs:OBJ

33 OBJ=$1
34 if [ "x$OBJ" = "x" ]; then
35 echo '$OBJ not defined'
38 if [ ! -d $OBJ ]; then
39 echo "not a directory: $OBJ"
241 PIDFILE=$OBJ/pidfile
246 cat << EOF > $OBJ/sshd_config
254 AuthorizedKeysFile $OBJ/authorized_keys_%u
263 echo "$TEST_SSH_SSHD_CONFOPTS" >> $OBJ/sshd_config
267 cp $OBJ/sshd_config $OBJ/sshd_proxy
270 echo 'StrictModes no' >> $OBJ/sshd_proxy
273 cat << EOF > $OBJ/ssh_config
280 GlobalKnownHostsFile $OBJ/known_hosts
281 UserKnownHostsFile $OBJ/known_hosts
293 echo "$TEST_SSH_SSH_CONFOPTS" >> $OBJ/ssh_config
296 rm -f $OBJ/known_hosts $OBJ/authorized_keys_$USER
301 rm -f $OBJ/$t
302 ${SSHKEYGEN} -b 1024 -q -N '' -t $t -f $OBJ/$t ||\
308 cat $OBJ/$t.pub
309 ) >> $OBJ/known_hosts
312 cat $OBJ/$t.pub >> $OBJ/authorized_keys_$USER
313 echo IdentityFile $OBJ/$t >> $OBJ/ssh_config
316 $SUDO cp $OBJ/$t $OBJ/host.$t
317 echo HostKey $OBJ/host.$t >> $OBJ/sshd_config
320 echo HostKey $OBJ/$t >> $OBJ/sshd_proxy
322 chmod 644 $OBJ/authorized_keys_$USER
342 mkdir -p ${OBJ}/.putty
345 rm -f ${OBJ}/putty.rsa2
346 puttygen -t rsa -o ${OBJ}/putty.rsa2 < /dev/null > /dev/null
347 puttygen -O public-openssh ${OBJ}/putty.rsa2 \
348 >> $OBJ/authorized_keys_$USER
351 ${SRC}/ssh2putty.sh 127.0.0.1 $PORT $OBJ/rsa > \
352 ${OBJ}/.putty/sshhostkeys
353 ${SRC}/ssh2putty.sh 127.0.0.1 22 $OBJ/rsa >> \
354 ${OBJ}/.putty/sshhostkeys
357 mkdir -p ${OBJ}/.putty/sessions
358 rm -f ${OBJ}/.putty/sessions/localhost_proxy
359 echo "Hostname=127.0.0.1" >> ${OBJ}/.putty/sessions/localhost_proxy
360 echo "PortNumber=$PORT" >> ${OBJ}/.putty/sessions/localhost_proxy
361 echo "ProxyMethod=5" >> ${OBJ}/.putty/sessions/localhost_proxy
362 echo "ProxyTelnetCommand=sh ${SRC}/sshd-log-wrapper.sh ${SSHD} ${TEST_SSH_LOGFILE} -i -f $OBJ/sshd_proxy" >> ${OBJ}/.putty/sessions/localhost_proxy
369 cat $OBJ/ssh_config
370 echo proxycommand ${SUDO} sh ${SRC}/sshd-log-wrapper.sh ${SSHD} ${TEST_SSH_LOGFILE} -i -f $OBJ/sshd_proxy
371 ) > $OBJ/ssh_proxy
374 ${SSHD} -t -f $OBJ/sshd_proxy || fatal "sshd_proxy broken"
379 $SUDO ${SSHD} -f $OBJ/sshd_config "$@" -t || fatal "sshd_config broken"
380 $SUDO ${SSHD} -f $OBJ/sshd_config -e "$@" >>$TEST_SSH_LOGFILE 2>&1