Dranzaz has asked for the wisdom of the Perl Monks concerning the following question:
The Telnet test works just fine. However the SSH test dies. Here are the server log entries:#Begin telnet access test and display results $telnet = Net::Telnet->new(Timeout => 10, Errmode => "return"); if ($telnet->open($tsip)) { $| = 1; print '<TD align=center bgcolor=#ff0000>Granted</TD>'; $| = 0; $tstelnettest = 1; } else { $| = 1; print '<TD align=center bgcolor=#00ff00>Denied</TD>'; $| = 0; $tstelnettest = 0; } $telnet->close; #Begin SSH access test and display results if ($ssh = Net::SSH::Perl->new("$tsip")) { print '<TD align=center bgcolor=#00FF00>Granted</TD>'; $tssshtest = 1; } else { print '<TD align=center bgcolor=#FF0000>Denied</TD>'; $tssshtest = 0; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: SSH connection refusal kills CGI
by idsfa (Vicar) on Nov 24, 2005 at 20:17 UTC | |
by Dranzaz (Sexton) on Nov 25, 2005 at 15:53 UTC |