xref: /freebsd/crypto/openssh/regress/localcommand.sh (revision 7fdf597e96a02165cfe22ff357b857d5fa15ed8a)
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