On Nov 23, 8:29 am, [email protected] (Amit Saxena) wrote: > Hi all, > > What's the best way to monitor ssh connectivity, and not just ssh port > availability, to a server using perl assuming following constraints ? > > I tried for Net::SSH but public private key is not allowed. > > I tried for Net::SSH::Perl etc but these are not built in perl distribution > (active perl on windows or part of perl distribution of linux / solaris). > > Can we do it via "IO::Socket::INET" ? >
You may want to consider Net::SSH2 which, although only SSH2 is supported, is much easier to build. I notice there's a Win32 perl-5.12 Net::SSH2 pre- built available from: http://cpan.uwinnipeg.ca/PPMPackages/12xx/ You just have to add the additional repository to your Activestate distro as I recall before doing the ppm install. I've built Net::SSH2 on both Linux and Solaris in the past too. Net::SSH::Perl is another possibity but quite challenging and I wouldn't recommend it unless you've got lots of time and tenacity. -- Charles DeRykus -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
