NAME

Net::Scan::SSH::Server::Version - grab SSH server version

SYNOPSIS

use Net::Scan::SSH::Server::Version;

my $host = $ARGV[0];

my $scan = Net::Scan::SSH::Server::Version->new({
  host    => $host,
  timeout => 5
});

my $results = $scan->scan;

print "$host $results\n" if $results;

DESCRIPTION

This module permit to grab SSH server version.

METHODS

new

The constructor. Given a host returns a Net::Scan::SSH::Server::Version object:

my $scan = Net::Scan::SSH::Server::Version->new({
  host    => '127.0.0.1',
  port    => 22,
  timeout => 5,
  debug   => 0 
});

Optionally, you can also specify :

port

Remote port. Default is 22;

timeout

Default is 8 seconds;

debug

Set to 1 enable debug. Debug displays "connection refused" when an SSH server is unrecheable. Default is 0;

scan

Scan the target.

$scan->scan;

BUGS

For this moment grab only "standard OpenSSH version".

SEE ALSO

http://www.OpenSSH.org

AUTHOR

Matteo Cantoni, <mcantoni@cpan.org>

COPYRIGHT AND LICENSE

You may distribute this module under the terms of the Artistic license. See Copying file in the source distribution archive.

Copyright (c) 2006, Matteo Cantoni