I am trying to debug an SFTP server for openSSH v.4.4p1. I can get sshd
to debug with the -d and -e parameters. However, I cannot get SFTP to
output debugging info. Ideally I would like to it print out to stderr,
but to a log file is fine too. I've tried adding -l DEBUG3 to the
sshd_config with the sftp-server subsystem specification, but alas no
debugging is evident.

I've looked on-line but cannot find anything that is clear as what to do.

Any help or pointers to help are appreciated.