On Sat, Apr 10, 2010 at 7:49 AM, Peter Stuge <pe...@stuge.se> wrote:

> Hi,
>
> NAGASEKHAR BHUVANAGIRI wrote:
> > The verbose mode execution of sftp connection using curl command
> > line utility is as follows:
>
> This output is not useful.
>
> Please provide a libssh2 debug trace from such an execution.
> That may require you to recompile libssh2 with tracing enabled, and
> to modify curl so that it calls libssh2_trace(session,~0); after
> return from libssh2_session_init().
>
>
> //Peter
>  _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>


Following is the trace output:
$ curl -v sftp://user2:passwo...@10.176.xxx.xxx/
* About to connect() to 10.176.XXX.XXX port 22 (#0)
*   Trying 10.176.XXX.XXX... connected
* Connected to 10.176.XXX.XXX (10.176.XXX.XXX) port 22 (#0)
* User: user2
* Password: password2
* SSH socket: 3
* SFTP 0x38cc6930 state change from SSH_STOP to SSH_S_STARTUP
[libssh2] 0.608980 Transport: session_startup for socket 3
[libssh2] 0.609023 Transport: Sending Banner: SSH-2.0-libssh2_1.1
[libssh2] 0.609169 Failure Event: -2 - Timeout waiting for banner
* Failure establishing ssh session
* SFTP 0x38cc6930 state change from SSH_S_STARTUP to SSH_SESSION_FREE
[libssh2] 0.609514 Transport: Freeing session resource
* SFTP 0x38cc6930 state change from SSH_SESSION_FREE to SSH_STOP
* SSH DISCONNECT starts now
* SFTP 0x38cc6930 state change from SSH_STOP to SSH_SFTP_SHUTDOWN
* SFTP 0x38cc6930 state change from SSH_SFTP_SHUTDOWN to
SSH_SESSION_DISCONNECT
* SFTP 0x38cc6930 state change from SSH_SESSION_DISCONNECT to
SSH_SESSION_FREE
* SFTP 0x38cc6930 state change from SSH_SESSION_FREE to SSH_STOP
* SSH DISCONNECT is done
* Closing connection #0
curl: (2) Failure establishing ssh session
$
Thanks,
Nagasekhar
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Reply via email to