2015-03-03 23:35:19 +01:00
|
|
|
# $OpenBSD: localcommand.sh,v 1.3 2015/03/03 22:35:19 markus Exp $
|
2008-03-12 13:58:05 +01:00
|
|
|
# Placed in the Public Domain.
|
|
|
|
|
|
|
|
tid="localcommand"
|
|
|
|
|
|
|
|
echo 'PermitLocalCommand yes' >> $OBJ/ssh_proxy
|
|
|
|
echo 'LocalCommand echo foo' >> $OBJ/ssh_proxy
|
|
|
|
|
2015-03-03 23:35:19 +01:00
|
|
|
for p in ${SSH_PROTOCOLS}; do
|
2008-03-12 13:58:05 +01:00
|
|
|
verbose "test $tid: proto $p localcommand"
|
2008-03-14 19:02:51 +01:00
|
|
|
a=`${SSH} -F $OBJ/ssh_proxy -$p somehost true`
|
2008-03-12 13:58:05 +01:00
|
|
|
if [ "$a" != "foo" ] ; then
|
|
|
|
fail "$tid proto $p"
|
|
|
|
fi
|
|
|
|
done
|