Package: smokeping Version: 2.7.3-2 Severity: normal Dear Maintainer,
It is not possible to use SSH probe on Debian Buster: ``` $ sudo smokeping --debug ERROR: output of '/usr/bin/ssh-keyscan -t dsa,rsa,rsa1 127.0.0.1' does not match (?^i:^# \S+ SSH-) at (eval 59) line 1. ``` because ssh-keyscan does not support rsa1: ``` $ /usr/bin/ssh-keyscan -t dsa,rsa,rsa1 127.0.0.1 Unknown key type "rsa1" ``` The solution is to apply patch: https://github.com/oetiker/SmokePing/commit/62ac9fda04b994bbf4f97d3dd1cf8b92cf279e71.patch?diff=unified ``` >From 62ac9fda04b994bbf4f97d3dd1cf8b92cf279e71 Mon Sep 17 00:00:00 2001 From: "Avinash H. Duduskar" <stry...@hotmail.com> Date: Mon, 11 Mar 2019 13:16:13 +0530 Subject: [PATCH] Update SSH.pm to drop SSHv1 rsa1 - Removes rsa1 - Adds ecdsa instead https://github.com/oetiker/SmokePing/issues/120 --- 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 ffbb5cc2..f21f53e8 100644 --- a/lib/Smokeping/probes/SSH.pm +++ b/lib/Smokeping/probes/SSH.pm @@ -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 127.0.0.1"; + my $call = "$self->{properties}{binary} -t dsa,rsa,ecdsa 127.0.0.1"; my $return = `$call 2>&1`; if ($return =~ m/$ssh_re/s){ print "### parsing ssh-keyscan output...OK\n"; @@ -132,7 +132,7 @@ sub targetvars { return $class->_makevars($class->SUPER::targetvars, { keytype => { _doc => "Type of key, used in ssh-keyscan -t I<keytype>", - _re => "[dr]sa1*", + _re => "[ecdr]sa*", _example => 'dsa', _default => 'rsa', }, ``` Kind regards, Milosz -- System Information: Debian Release: 10.4 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 4.19.0-8-amd64 (SMP w/2 CPU cores) Kernel taint flags: TAINT_CRAP Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages smokeping depends on: ii adduser 3.118 ii debianutils 4.8.6.1 ii exim4-daemon-light [mail-transport-agent] 4.92-8+deb10u4 ii fping 4.2-1 ii libcgi-fast-perl 1:2.13-1 ii libconfig-grammar-perl 1.12-2 ii libdigest-hmac-perl 1.03+dfsg-2 ii libjs-cropper 1.2.2-1 ii libjs-prototype 1.7.1-3 ii libjs-scriptaculous 1.9.0-2 ii librrds-perl 1.7.1-2 ii libsnmp-session-perl 1.14~git20130523.186a005-4 ii liburi-perl 1.76-1 ii libwww-perl 6.36-2 ii lsb-base 10.2019051400 ii perl 5.28.1-6 ii ucf 3.0038+nmu1 Versions of packages smokeping recommends: pn apache2 | apache2 | httpd <none> ii dnsutils 1:9.11.5.P4+dfsg-5.1+deb10u1 ii echoping 6.0.2-10 ii libsocket6-perl 0.29-1+b1 ii nginx-full [httpd-cgi] 1.14.2-2+deb10u1 Versions of packages smokeping suggests: ii curl 7.64.0-4+deb10u1 pn libauthen-radius-perl <none> ii libio-socket-ssl-perl 2.060-3 pn libnet-dns-perl <none> pn libnet-ldap-perl <none> pn libnet-telnet-perl <none> ii openssh-client 1:7.9p1-10+deb10u2 -- Configuration Files: /etc/smokeping/smokeping_secrets [Errno 13] Permission denied: '/etc/smokeping/smokeping_secrets' -- no debconf information