You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Boysenberry Payne <bo...@humaniteque.com> on 2005/11/18 00:47:44 UTC

Need help troubleshooting error using Net::SSH::Perl

Hello,

	I'm on OS X 10.3.9 / AP2 / MP 2 / Perl 5.8.7
I've got a script that connects to a couple of ssh servers using  
Net::SSH::Perl.

I've been able to log onto both servers using SSH in a terminal and  
previously
my script worked for connecting to both servers.  Now, one server gives  
the following errors:

Trying empty user-authentication request.
Uncaught exception from user code:
         Connection closed by remote host. at  
/usr/local/lib/perl5/site_perl/5.8.7/Net/SSH/Perl/AuthMgr.pm line 142
  at /usr/local/lib/perl5/site_perl/5.8.7/Net/SSH/Perl/Packet.pm line 52
         Net::SSH::Perl::Packet::read('Net::SSH::Perl::Packet',  
'Net::SSH::Perl::SSH2=HASH(0xa127b4)') called at  
/usr/local/lib/perl5/site_perl/5.8.7/Net/SSH/Perl/AuthMgr.pm line 142
          
Net::SSH::Perl::AuthMgr::run('Net::SSH::Perl::AuthMgr=HASH(0xab1938)',  
'SCALAR(0xab12b4)') called at  
/usr/local/lib/perl5/site_perl/5.8.7/Net/SSH/Perl/AuthMgr.pm line 90
          
Net::SSH::Perl::AuthMgr::authenticate('Net::SSH::Perl:: 
AuthMgr=HASH(0xab1938)') called at  
/usr/local/lib/perl5/site_perl/5.8.7/Net/SSH/Perl/SSH2.pm line 92
          
Net::SSH::Perl::SSH2::_login('Net::SSH::Perl::SSH2=HASH(0xa127b4)')  
called at /usr/local/lib/perl5/site_perl/5.8.7/Net/SSH/Perl/SSH2.pm  
line 66
          
Net::SSH::Perl::SSH2::login('Net::SSH::Perl::SSH2=HASH(0xa127b4)',  
'user', 'pass') called at /Users/boysie/mod_perl_inc/Habitat/CLI/SSH.pm  
line 25
         Habitat::CLI::SSH::new('Habitat::CLI::SSH', 'static') called at  
/Users/boysie/mod_perl_inc/Habitat/CLI/Admin.pm line 150
          
Habitat::CLI::Admin::update_vhosts('Habitat::CLI:: 
Admin=HASH(0x801b34)') called at  
/Users/boysie/mod_perl_inc/Habitat/CLI/DIR.pm line 75
         Habitat::CLI::DIR::__ANON__ called at  
/Users/boysie/mod_perl_inc/Habitat/CLI.pm line 77
         Habitat::CLI::choices('Habitat::CLI::Admin=HASH(0x801b34)',  
'order', 'ARRAY(0xa1237c)', 'title', 'Choose a Main Option:',  
'choices', 'HASH(0xa12310)') called at  
/Users/boysie/mod_perl_inc/Habitat/CLI/DIR.pm line 105
          
Habitat::CLI::DIR::main_choices('Habitat::CLI::Admin=HASH(0x801b34)')  
called at /Users/boysie/mod_perl_inc/Habitat/CLI/DIR.pm line 57
         Habitat::CLI::DIR::main('Habitat::CLI::Admin=HASH(0x801b34)')  
called at /Users/boysie/mod_perl_inc/Habitat/CLI.pm line 22
         Habitat::CLI::new('Habitat::CLI::Admin') called at  
/Users/boysie/cli/h.pl line 13
Habitat::CLI::SSH::Users DetroyedHabitat::CLI::Admin Class Destroyed

I changed the user/pass above to obsificate the real info...

Like I said this works on one server, and used to work on this server.   
Does this give enough info to tell me what's wrong?

Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com


Re: Need help troubleshooting error using Net::SSH::Perl

Posted by Boysenberry Payne <bo...@humaniteque.com>.
Disregard this thread, I figured out what it was.  SOmehow the ssh  
server got shut off.

Sorry for the unnecessary noise.

Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Nov 17, 2005, at 5:47 PM, Boysenberry Payne wrote:

> Hello,
>
> 	I'm on OS X 10.3.9 / AP2 / MP 2 / Perl 5.8.7
> I've got a script that connects to a couple of ssh servers using  
> Net::SSH::Perl.
>
> I've been able to log onto both servers using SSH in a terminal and  
> previously
> my script worked for connecting to both servers.  Now, one server  
> gives the following errors:
>
> Trying empty user-authentication request.
> Uncaught exception from user code:
>         Connection closed by remote host. at  
> /usr/local/lib/perl5/site_perl/5.8.7/Net/SSH/Perl/AuthMgr.pm line 142
>  at /usr/local/lib/perl5/site_perl/5.8.7/Net/SSH/Perl/Packet.pm line 52
>         Net::SSH::Perl::Packet::read('Net::SSH::Perl::Packet',  
> 'Net::SSH::Perl::SSH2=HASH(0xa127b4)') called at  
> /usr/local/lib/perl5/site_perl/5.8.7/Net/SSH/Perl/AuthMgr.pm line 142
>          
> Net::SSH::Perl::AuthMgr::run('Net::SSH::Perl::AuthMgr=HASH(0xab1938)',  
> 'SCALAR(0xab12b4)') called at  
> /usr/local/lib/perl5/site_perl/5.8.7/Net/SSH/Perl/AuthMgr.pm line 90
>          
> Net::SSH::Perl::AuthMgr::authenticate('Net::SSH::Perl:: 
> AuthMgr=HASH(0xab1938)') called at  
> /usr/local/lib/perl5/site_perl/5.8.7/Net/SSH/Perl/SSH2.pm line 92
>          
> Net::SSH::Perl::SSH2::_login('Net::SSH::Perl::SSH2=HASH(0xa127b4)')  
> called at /usr/local/lib/perl5/site_perl/5.8.7/Net/SSH/Perl/SSH2.pm  
> line 66
>          
> Net::SSH::Perl::SSH2::login('Net::SSH::Perl::SSH2=HASH(0xa127b4)',  
> 'user', 'pass') called at  
> /Users/boysie/mod_perl_inc/Habitat/CLI/SSH.pm line 25
>         Habitat::CLI::SSH::new('Habitat::CLI::SSH', 'static') called  
> at /Users/boysie/mod_perl_inc/Habitat/CLI/Admin.pm line 150
>          
> Habitat::CLI::Admin::update_vhosts('Habitat::CLI:: 
> Admin=HASH(0x801b34)') called at  
> /Users/boysie/mod_perl_inc/Habitat/CLI/DIR.pm line 75
>         Habitat::CLI::DIR::__ANON__ called at  
> /Users/boysie/mod_perl_inc/Habitat/CLI.pm line 77
>         Habitat::CLI::choices('Habitat::CLI::Admin=HASH(0x801b34)',  
> 'order', 'ARRAY(0xa1237c)', 'title', 'Choose a Main Option:',  
> 'choices', 'HASH(0xa12310)') called at  
> /Users/boysie/mod_perl_inc/Habitat/CLI/DIR.pm line 105
>          
> Habitat::CLI::DIR::main_choices('Habitat::CLI::Admin=HASH(0x801b34)')  
> called at /Users/boysie/mod_perl_inc/Habitat/CLI/DIR.pm line 57
>         Habitat::CLI::DIR::main('Habitat::CLI::Admin=HASH(0x801b34)')  
> called at /Users/boysie/mod_perl_inc/Habitat/CLI.pm line 22
>         Habitat::CLI::new('Habitat::CLI::Admin') called at  
> /Users/boysie/cli/h.pl line 13
> Habitat::CLI::SSH::Users DetroyedHabitat::CLI::Admin Class Destroyed
>
> I changed the user/pass above to obsificate the real info...
>
> Like I said this works on one server, and used to work on this server.  
>  Does this give enough info to tell me what's wrong?
>
> Thanks,
> Boysenberry
>
> boysenberrys.com | habitatlife.com | selfgnosis.com
>
>
>