You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
351 B
14 lines
351 B
4 months ago
|
# $OpenBSD: localcommand.sh,v 1.4 2017/04/30 23:34:55 djm Exp $
|
||
|
# Placed in the Public Domain.
|
||
|
|
||
|
tid="localcommand"
|
||
|
|
||
|
echo 'PermitLocalCommand yes' >> $OBJ/ssh_proxy
|
||
|
echo 'LocalCommand echo foo' >> $OBJ/ssh_proxy
|
||
|
|
||
|
verbose "test $tid: proto $p localcommand"
|
||
|
a=`${SSH} -F $OBJ/ssh_proxy somehost true`
|
||
|
if [ "$a" != "foo" ] ; then
|
||
|
fail "$tid proto $p"
|
||
|
fi
|