Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Net::SSH bad packet length error
Name: newtechie Date: November 24, 2008 at 22:00:42 Pacific OS: solaris8 and windows 2000 CPU/Ram: n/a Product: sun
Comment:
I have ssh installed on my windows 2000 machine (freesshd). I am running a perl script that needs to connect to windows box, and run a command. This perl script uses the Net::SSH module. Upon connecting, I see this error: Bad packet length 2692329732 at /usr/perl5/5.00503/Net/SSH/Perl/Packet.pm line 171 I'm horribly stuck. New with perl, so please help!!
Name: yoni64 Date: November 25, 2008 at 01:51:16 Pacific
Reply:
I have the same problem with freeSSHd The only server that I manged to work with on windows is coreFTP mini sftp server, and that only after applying the patch on Kex.pm (see CPAN site on Net::SSH::Perl bugs)
0
Response Number 2
Name: newtechie Date: November 25, 2008 at 08:14:48 Pacific
Reply:
hmm would coreFTP allow me to login and run a perl command on the windows machine? The idea is for a giant build script to run on a solaris box, which ssh's into the windows box mid-way, runs a perl script there, and continues back on the solaris box afterwards.
0
Response Number 3
Name: yoni64 Date: November 26, 2008 at 01:04:43 Pacific
Reply:
Try KpYM - It work for me
0
Response Number 4
Name: newtechie Date: November 26, 2008 at 15:46:23 Pacific
Reply:
hmm..so I installed KpYM ssh on my windows box. Now the script gives this error: netmgt02: Sent DH public key, waiting for reply. Key class 'Net::SSH::Perl::Key::RSA' is unsupported: Can't locate Crypt/Primes.p m in @INC (@INC contains: /usr/perl5/5.0 0503/sun4-solaris /usr/perl5/5.00503 /usr/perl5/site_perl/5.005/sun4-solaris /us r/perl5/site_perl/5.005 .) at /usr/perl5/site_perl/5.005/Crypt/RSA/Key.pm line 1 9, <GEN0> chunk 1. BEGIN failed--compilation aborted at /usr/perl5/site_perl/5.005/Crypt/RSA/Key.pm line 19, <GEN0> chunk 1. BEGIN failed--compilation aborted at /usr/perl5/site_perl/5.005/Crypt/RSA.pm lin e 19, <GEN0> chunk 1. BEGIN failed--compilation aborted at /usr/perl5/5.00503/Net/SSH/Perl/Key/RSA.pm line 15, <GEN0> chunk 1. BEGIN failed--compilation aborted at (eval 20) line 1, <GEN0> chunk 1.
I tried googling this error but pretty have had no luck...argh! did you see this error?? What did you do to get rid of it? Thanks a lot in advance!
Summary: when i run nmake ,make or Pmake on some of the dependent module required for Net::SSH::Perl i get errors like: on module Math::GMP " NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return ...
Summary: i have installed successfuly Net-SSH-Perl [1.29] on my xp proffesional ,when i am running this simple code : use Net::SSH::Perl; $host="127.0.0.1"; my $ssh = Net::SSH::Perl->new($host); i get an erro...
Summary: hi , when i am excuting the following use strict; use warnings; use Net::SSH qw(ssh issh sshopen2 sshopen3); my $command = "dir"; issh('username@10.11.13.34', $command) or die "ssh error $!"; i am ...