diff options
author | Tobi Oetiker <tobi@oetiker.ch> | 2008-09-14 22:49:09 +0200 |
---|---|---|
committer | Tobi Oetiker <tobi@oetiker.ch> | 2008-09-14 22:49:09 +0200 |
commit | 50f3fd2f1cc7312ef548c3682f9af978b18e1dcd (patch) | |
tree | 046d9a447496a091d9e8dca1c979f7a0a8130ec0 | |
parent | 68d0715bf459cba1e94cdb8644d6f44036fe5694 (diff) | |
download | smokeping-50f3fd2f1cc7312ef548c3682f9af978b18e1dcd.tar.gz smokeping-50f3fd2f1cc7312ef548c3682f9af978b18e1dcd.tar.xz |
make this work even when ipv6 addresses are around -- Olaf Jaehrling
-rw-r--r-- | lib/Smokeping/probes/SSH.pm | 4 |
1 files 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"; |