On Tue, Nov 23, 2010 at 10:09 PM, shawn wilson <[email protected]> wrote:

> Well, each new ssh connection should spawn a new process so you could look
> at it from that end. More technically, you could look into netstat or lsof
> modules.
> On Nov 23, 2010 11:31 AM, "Amit Saxena" <[email protected]> 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" ?
> >
> > Thanks & Regards,
> > Amit Saxena
>

Thanks Shawn for the reply.

Actually my requirement, to be specific, is as follows.

The script will be executed in periodic fashion from a *nix server and the
script will initiate a ssh connection to itself using perl. This is to
confirm that the ssh service is running and there is no issue in getting a
new and authenticated ssh session when clients will connect to the server
via ssh externally.

Please suggest.

Thanks & Regards,
Amit Saxena

Reply via email to