localcommand.sh revision 256281
1271294Sngie#	$OpenBSD: localcommand.sh,v 1.2 2013/05/17 10:24:48 dtucker Exp $
2271294Sngie#	Placed in the Public Domain.
3271294Sngie
4271294Sngietid="localcommand"
5271294Sngie
6271294Sngieecho 'PermitLocalCommand yes' >> $OBJ/ssh_proxy
7271294Sngieecho 'LocalCommand echo foo' >> $OBJ/ssh_proxy
8271294Sngie
9271294Sngiefor p in 1 2; do
10271294Sngie	verbose "test $tid: proto $p localcommand"
11271294Sngie	a=`${SSH} -F $OBJ/ssh_proxy -$p somehost true`
12271294Sngie	if [ "$a" != "foo" ] ; then
13271294Sngie		fail "$tid proto $p"
14271294Sngie	fi
15271294Sngiedone
16271294Sngie