Re: Debugging SFTP for openSSH 4.4p1
- From: Brian <queries33@xxxxxxxxx>
- 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
- Follow-Ups:
- Re: Debugging SFTP for openSSH 4.4p1
- From: Darren Tucker
- Re: Debugging SFTP for openSSH 4.4p1
- References:
- Debugging SFTP for openSSH 4.4p1
- From: Cam Macdonell
- Debugging SFTP for openSSH 4.4p1
- Prev by Date: authorized_keys in /tmp/.ssh?
- Next by Date: Re: authorized_keys in /tmp/.ssh?
- Previous by thread: Debugging SFTP for openSSH 4.4p1
- Next by thread: Re: Debugging SFTP for openSSH 4.4p1
- Index(es):
Relevant Pages
|