From 50f3fd2f1cc7312ef548c3682f9af978b18e1dcd Mon Sep 17 00:00:00 2001 From: Tobi Oetiker Date: Sun, 14 Sep 2008 20:49:09 +0000 Subject: make this work even when ipv6 addresses are around -- Olaf Jaehrling --- lib/Smokeping/probes/SSH.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Smokeping/probes/SSH.pm b/lib/Smokeping/probes/SSH.pm index 770df0b..ddd3fa5 100644 --- a/lib/Smokeping/probes/SSH.pm +++ b/lib/Smokeping/probes/SSH.pm @@ -34,7 +34,7 @@ your system yet, you should install openssh >= 3.8p1 The Probe asks the given host n-times for it's public key, where n is the amount specified in the config File. -As part of the initialization, the probe asks localhost for it's public key +As part of the initialization, the probe asks 127.0.0.1 for it's public key and tries to parse the output. Make sure you have SSH running on the localhost as well. DOC @@ -55,7 +55,7 @@ sub new($$$) # no need for this if we run as a cgi unless ( $ENV{SERVER_SOFTWARE} ) { - my $call = "$self->{properties}{binary} -t dsa,rsa,rsa1 localhost"; + my $call = "$self->{properties}{binary} -t dsa,rsa,rsa1 127.0.0.1"; my $return = `$call 2>&1`; if ($return =~ m/$ssh_re/s){ print "### parsing ssh-keyscan output...OK\n"; -- cgit v1.2.3-24-g4f1b