authinfo.sh 574 B

123456789101112131415161718
  1. # $OpenBSD: authinfo.sh,v 1.3 2018/04/10 00:13:27 djm Exp $
  2. # Placed in the Public Domain.
  3. tid="authinfo"
  4. # Ensure the environment variable doesn't leak when ExposeAuthInfo=no.
  5. verbose "ExposeAuthInfo=no"
  6. env SSH_USER_AUTH=blah ${SSH} -F $OBJ/ssh_proxy x \
  7. 'env | grep SSH_USER_AUTH >/dev/null' && fail "SSH_USER_AUTH present"
  8. verbose "ExposeAuthInfo=yes"
  9. echo ExposeAuthInfo=yes >> $OBJ/sshd_proxy
  10. ${SSH} -F $OBJ/ssh_proxy x \
  11. 'grep ^publickey "$SSH_USER_AUTH" /dev/null >/dev/null' ||
  12. fail "ssh with ExposeAuthInfo failed"
  13. # XXX test multiple auth and key contents