1255670Sdes# $OpenBSD: localcommand.sh,v 1.2 2013/05/17 10:24:48 dtucker Exp $ 2180746Sdes# Placed in the Public Domain. 3180746Sdes 4180746Sdestid="localcommand" 5180746Sdes 6180746Sdesecho 'PermitLocalCommand yes' >> $OBJ/ssh_proxy 7180746Sdesecho 'LocalCommand echo foo' >> $OBJ/ssh_proxy 8180746Sdes 9180746Sdesfor p in 1 2; do 10180746Sdes verbose "test $tid: proto $p localcommand" 11180746Sdes a=`${SSH} -F $OBJ/ssh_proxy -$p somehost true` 12180746Sdes if [ "$a" != "foo" ] ; then 13180746Sdes fail "$tid proto $p" 14180746Sdes fi 15180746Sdesdone 16