in reply to New Module: Net::SSH

The main problem I see is that Crypt::IDEA only works on Solaris (according to CPAN Testers and to gcc on my Linux box)

.

Too bad because this looks like a really useful module.

Replies are listed 'Best First'.
Re: Re: New Module: Net::SSH
by btrott (Parson) on Jan 11, 2001 at 12:55 UTC
    That's weird. It compiled fine for me on redhat 6.2.

    Here's my gcc:

    % gcc -v Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66 +/specs gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
    Anyway: I will indeed take a look at this. I've no idea why it wouldn't compile; I'm assuming you grabbed the latest version from CPAN? Were the errors similar to those reported in the CPAN Testers report?

    I'm not exactly an expert in C. :)

    And I do mean to add more encryption ciphers; in fact, since there's a pure Perl version of Blowfish, that shouldn't give any problems. Hopefully.

      The version of gcc I use is actually more recent:

      gcc -v Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux/2.95.3/specs gcc version 2.95.3 19991030 (prerelease)

      I am actually really surprised you managed to compile Crypt::IDEA, according to CPAN Testers it needs a patch to work even on Solaris.

      The error I get is:

      IDEA.xs: In function `XS_Crypt__IDEA_crypt': IDEA.xs:66: `sv_undef' undeclared (first use in this function)

      Which might be realted to an earlier warning:

       Please specify prototyping behavior for IDEA.xs (see perlxs manual)

      I don't know enough about xs to do much more here.

        The problem is that Crypt::IDEA has not been updated to handle Perl 5.6's namespace changes. An error message looking like that is a dead giveaway. You didn't mention the version of Perl that you're running, but I'll eat my left hat if it's not 5.6+, and I'll eat my right hat if btrott isn't working with 5.005_03 or lower.

        Solution: run perl Makefile.PL POLLUTE=1, and then re-run make.

        ObNet::SSH - I got it compiled without much trouble, but ran into three separate errors on trying to connect to the three hosts on which I have ssh access:

        [~/src/Net-SSH-0.01] $ perl -Iblib/lib -mNet::SSH $s=Net::SSH::->new("host1"); $s->login("xxxxx","xxxxx"); print $s->cmd("ls"); __END__ Received server public key (768 bits) and host key (1024 bits). Corrupted check bytes on input at blib/lib/Net/SSH.pm line 135 [~/src/Net-SSH-0.01] $ perl -Iblib/lib -mNet::SSH $s=Net::SSH::->new("host2"); $s->login("xxxxx","xxxxx"); print $s->cmd("ls"); __END__ Received server public key (768 bits) and host key (1024 bits). Didn't expect to get packet of type 15 at - line 3 [~/src/Net-SSH-0.01] $ perl -Iblib/lib -mNet::SSH $s=Net::SSH::->new("host3"); $s->login("xxxxx","xxxxx"); print $s->cmd("ls"); __END__ Received server public key (768 bits) and host key (1024 bits). Can't open /etc/ssh_known_hosts: No such file or directory at - line 3

        I looked around the code a bit, and it looks quite impressive. I'm looking forward to being able to play with it more. Keep up the good work!

        -dlc