quepepe has asked for the wisdom of the Perl Monks concerning the following question:

Hello,

We have Net::SFTP installed on a customer's Solaris server. They have a particular problem that has not appeared under other Solaris installations - when they try to run a hello-world-type connection to localhost, this error comes out:

Can't locate object method "_session_channel" via package "Net::SSH::Perl::SSH1" at ..... Net/SFTP.pm line 52

The _session_channel is only present in Net::SSH::Perl::SSH2, so I am assuming Net::SFTP only works with SSH2. However, for some reason Net::SSH::Perl::SSH1 is being loaded by what I figured was Net::SSH::Perl.

The customer claims they have SSH1 disabled. I confirmed this by trying and failing to connect with SecureCRT via SSH1 (SSH2 works just fine).

Has anybody run into this problem before or have any ideas on how to solve it?

Thanks,

JC

Replies are listed 'Best First'.
Re: Net::SFTP/Net::SSH on Solaris 2.9
by PodMaster (Abbot) on Apr 08, 2004 at 01:28 UTC
    Have you ever installed Net::SSH::Perl? This is what the process looks like
    This is Net::SSH::Perl. As of version 1.00, Net::SSH::Perl supports both the SSH1 and SSH2 protocols natively. The two protocols have different module prerequisitives, so you need to decide which protocol(s) you plan to use. If you use one or the other, only those modules for your chosen protocol will be installed; if you choose both, all of the supporting modules will be installed. Please choose the protocols you'd like to use from the following list ("Both" is the default). [1] SSH1 [2] SSH2 [3] Both SSH1 and SSH2 Which protocol(s) do you plan to use? [3]
    I suggest reinstalling Net::SSH::Perl and making sure you support SSH2.

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.