Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Bricolage: users

SSH Mover in 2.0

 

 

Bricolage users RSS feed   Index | Next | Previous | View Threaded


rolfm at denison

Mar 1, 2011, 8:31 PM

Post #1 of 3 (796 views)
Permalink
SSH Mover in 2.0

The SSH mover that ships in 2.0.1 is broken. According to the development list, the Bricolage code has been refactored, but there are some outstanding errors in Net::SSH2 that cause problems.

For those who want to upgrade to 2.0.1, but want to keep using SFTP publishing, what version of SFTP.pm should users pull? 2.0? Some sort of patched version? Or should they just stay away from the upgrade?

-Matt


david at kineticode

Mar 1, 2011, 11:31 PM

Post #2 of 3 (724 views)
Permalink
Re: SSH Mover in 2.0 [In reply to]

On Mar 1, 2011, at 8:31 PM, Matthew Rolf wrote:

> The SSH mover that ships in 2.0.1 is broken. According to the development list, the Bricolage code has been refactored, but there are some outstanding errors in Net::SSH2 that cause problems.
>
> For those who want to upgrade to 2.0.1, but want to keep using SFTP publishing, what version of SFTP.pm should users pull? 2.0? Some sort of patched version? Or should they just stay away from the upgrade?

Net::SSH2 is pretty broken. You can patch it to work, though it's a kind of flimsy patch. Discussion here:

https://rt.cpan.org/Ticket/Display.html?id=59332

Really, someone needs to take on maintenance of Net::SSH2 and fix all that stuff, IMHO.

Best,

David


catalyst at mikeraynham

May 27, 2011, 3:15 AM

Post #3 of 3 (513 views)
Permalink
Re: SSH Mover in 2.0 [In reply to]

Sorry to dig up an old thread, but I have been trying to get SFTP
working with Bricolage, and encountered a few problems, which turned out
to be related to Net::SSH2 and libssh2.

SFTP worked correctly when using a non-password protected SSH key, but
it failed when I created a password protected key. It eventually boiled
down to a problem with the libssh2-1-dev package on my Ubuntu
installation. It was using libssh2 version 1.2.2. When I installed
libssh2 from source (version 1.2.8), the password protected key worked.

However, this meant that I had both the Ubuntu package installed, and
the version I built from source. If I removed the Ubuntu package, I was
unable to correctly install Net::SSH2, as it couldn't find the
development headers. I don't know how to resolve this.

Anyway... I posted a question on Stackoverflow:

http://tinyurl.com/4xaz868

The answer from salva suggested using Net::OpenSSH::Compat::SSH2, which
is a "Net::OpenSSH adapter for Net::SSH2 API compatibility". I tried
his suggestion, and it solved the problem. I've yet to test it with
Bricolage, but I thought it worth mentioning in case others want to try it.

There's also Net::SFTP::Foreign::Compat which provides an adapter for
Net::SFTP compatibility.

See:

Net::OpenSSH::Compat::SSH2
http://tinyurl.com/3jjbvel

Net::SFTP::Foreign::Compat
http://tinyurl.com/4xyonp9

Note that the author states that these are mature modules. However,
they may be of use as a quick fix for those experiencing problems in
2.0.1 with SFTP.

One way to use them is to patch Bric::Util::Trans::SFTP. Just add the
following lines at the start of the Programmatic Dependencies section,
before the existing Net::* modules:

use Net::OpenSSH::Compat::SSH2 qw(:supplant);
use Net::SFTP::Foreign::Compat qw(:supplant);

Again, I haven't tested this, and the modules may be buggy!


Regards,

Mike

Bricolage users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.