xref: /freebsd/crypto/openssh/regress/localcommand.sh (revision 59c8e88e72633afbc47a4ace0d2170d00d51f7dc)
1#	$OpenBSD: localcommand.sh,v 1.4 2017/04/30 23:34:55 djm Exp $
2#	Placed in the Public Domain.
3
4tid="localcommand"
5
6echo 'PermitLocalCommand yes' >> $OBJ/ssh_proxy
7echo 'LocalCommand echo foo' >> $OBJ/ssh_proxy
8
9verbose "test $tid: proto $p localcommand"
10a=`${SSH} -F $OBJ/ssh_proxy somehost true`
11if [ "$a" != "foo" ] ; then
12	fail "$tid proto $p"
13fi
14