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