Computing.Net > Forums > Programming > Net::SSH bad packet length error

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

Reply to Message Icon

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!!



Sponsored Link
Ads by Google

Response Number 1
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!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


creating new dos window For /l



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Net::SSH bad packet length error

Net SSH www.computing.net/answers/programming/net-ssh/13820.html

Net SSH Perl www.computing.net/answers/programming/net-ssh-perl/13854.html

perl net::ssh www.computing.net/answers/programming/perl-netssh-/14236.html