localcommand.sh 351 B

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