Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: Debugging SFTP for openSSH 4.4p1 |
|---|---|
| Date: | Thu, 19 Oct 2006 13:49:49 +1000 |
Cam Macdonell wrote:
Hello, 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. Thanks, Cam
OpenSSH sftp doesn't log much (anything?) - Have a look at the sftp-logging patches for openssh - they'll give you what you (we all!) want... I can honestly say I've used it with success in a few locations. http://sftplogging.sourceforge.net/ Sample debug output (from the link): Apr 27 17:00:35 host sftp-server[2888]: client is not permitted to chown. Apr 27 17:00:35 host sftp-server[2888]: realpath . Apr 27 17:00:39 host sftp-server[2888]: opendir /u/mikem/ Apr 27 17:00:45 host sftp-server[2888]: realpath /u/mikem/temp Apr 27 17:00:53 host sftp-server[2888]: setting file creation mode to 0666 and umask to 22 Apr 27 17:00:53 host sftp-server[2888]: open /u/mikem/temp/somefile.file Apr 27 17:00:53 host sftp-server[2888]: writing 32768 bytes to file Apr 27 17:01:00 host last message repeated 873 times Apr 27 17:01:00 host sftp-server[2888]: writing 9882 bytes to file Apr 27 17:01:07 host sftp-server[2888]: sftp-server finished. -- cheers brian
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | authorized_keys in /tmp/.ssh?, Clem Taylor |
|---|---|
| Next by Date: | Re: authorized_keys in /tmp/.ssh?, Derek Martin |
| Previous by Thread: | Debugging SFTP for openSSH 4.4p1, Cam Macdonell |
| Next by Thread: | Re: Debugging SFTP for openSSH 4.4p1, Darren Tucker |
| Indexes: | [Date] [Thread] [Top] [All Lists] |