sshd-log-wrapper.sh 293 B

123456789101112
  1. #!/usr/bin/env sh
  2. # $OpenBSD: sshd-log-wrapper.sh,v 1.4 2016/11/25 02:56:49 dtucker Exp $
  3. # Placed in the Public Domain.
  4. #
  5. # simple wrapper for sshd proxy mode to catch stderr output
  6. # sh sshd-log-wrapper.sh /path/to/logfile /path/to/sshd [args...]
  7. log=$1
  8. shift
  9. exec "$@" -E$log