Subject: Re: Error Handling with Net::SSH2

Re: Error Handling with Net::SSH2

From: David E. Wheeler <david_at_kineticode.com>
Date: Mon, 12 Jul 2010 20:25:08 -0700

On Jul 12, 2010, at 5:05 PM, Bret Dawson wrote:

> Those are the steps I followed:
>
> 1. turn on Net::SSH2->debug(1), then
> 2. restart Bricolage, then
> 3. re-try distribution)
>
> The difference was just that one extra line in the error log:
> "Net::SSH2: created new object 0x23561e88"

Bah! Okay, there is no way to turn on ssh2 tracing via the Net::SSH2 API. You'll have to uncomment this line in SSH2.xs and rebuild:

    /*libssh2_trace(RETVAL->session, -1);*/ /* enable tracing if debug build */

>> But can you do a rename using scp on the command-line?
>
> Using sftp, yes, I can. It was the first time I'd used sftp at the
> commandline, and I got a first-time warning ("authenticity can't be
> established, are you sure, permanently adding to known hpsts, etc.")
> just like the one you see the first time you login by ssh. But this is a
> machine I login to all the time, from a source machine I use all the
> time. Does sftp keep its own list of known hosts?

Seems likely.

> Update: The SFTP distribution now seems to work with username/password.
> Key-only still fails, with the same error as before.

Hopefully the trace will help. But also upgrade to the latest libssh2, as Daniel says that your version is pretty old.

Best,

David

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-07-13