mirror of
git://anongit.mindrot.org/openssh.git
synced 2024-12-19 00:24:35 +00:00
dad2b1892b
make it possible to run tests w/o ssh1 support; ok djm@
16 lines
398 B
Bash
16 lines
398 B
Bash
# $OpenBSD: localcommand.sh,v 1.3 2015/03/03 22:35:19 markus Exp $
|
|
# Placed in the Public Domain.
|
|
|
|
tid="localcommand"
|
|
|
|
echo 'PermitLocalCommand yes' >> $OBJ/ssh_proxy
|
|
echo 'LocalCommand echo foo' >> $OBJ/ssh_proxy
|
|
|
|
for p in ${SSH_PROTOCOLS}; do
|
|
verbose "test $tid: proto $p localcommand"
|
|
a=`${SSH} -F $OBJ/ssh_proxy -$p somehost true`
|
|
if [ "$a" != "foo" ] ; then
|
|
fail "$tid proto $p"
|
|
fi
|
|
done
|