curl-library
Re: SFTP transcript
Date: Wed, 10 Apr 2013 22:13:01 +0200 (CEST)
On Wed, 10 Apr 2013, Sam Deane wrote:
> Ah yeah, I guess that makes sense. I was fooled by the existence of the
> quote commands (chmod/rm/etc) into thinking of it as essentially still a
> text based protocol, just tunnelled over ssh. If that's not the case, then I
> can see the problem :)
SFTP is a "subsystem" with the SSH family. The protocol is pure binary and is
really very filesystem like in its nature.
> I'm up for adding the human-readable stuff, but I'll have to have a chat
> with the guys I'm working with and see if they want me to do it.
To get lots of debug info out of an SFTP session, you need to get data out
from libssh2 that might not be there by default. Usually, the best way to
trace problem with libssh2 is to build a version of that library with support
for libssh2_trace() and then make sure to define CURL_LIBSSH2_DEBUG in
lib/ssh.c. It produces a massive amount of detailed SSH-level protocol data
and information.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2013-04-10