Skip Menu | will be shut down on March 1st, 2021.

This queue is for tickets about the Test-SSH CPAN distribution.

Report information
The Basics
Id: 105709
Status: resolved
Priority: 0/
Queue: Test-SSH

Owner: Nobody in particular
Requestors: zwon [...]

Bug Information
Severity: Normal
Broken in: 0.04
Fixed in: (no value)


Subject: Module doesn't recognise OpenSSH on Ubuntu Trusty
Download (untitled) / with headers
text/plain 563b
On Ubuntu /usr/sbin/sshd -zalacain produces the following output: unknown option -- z OpenSSH_6.6.1p1 Ubuntu-2ubuntu2, OpenSSL 1.0.1f 6 Jan 2014 usage: sshd [-46DdeiqTt] [-b bits] [-C connection_spec] [-c host_cert_file] [-E log_file] [-f config_file] [-g login_grace_time] [-h host_key_file] [-k key_gen_time] [-o option] [-p port] [-u len] OpenSSH version is 6.6.1p1, but it does not match the pattern in lib/Test/SSH/Backend/, and so module refuses to use it. The patch attached fixes the problem. -- Pavel Shaydo
Subject: openssh-version-pattern.patch
diff --git a/lib/Test/SSH/Backend/ b/lib/Test/SSH/Backend/ index 047a874..00c54ad 100644 --- a/lib/Test/SSH/Backend/ +++ b/lib/Test/SSH/Backend/ @@ -145,7 +145,7 @@ sub _find_executable { $sshd->_log("checking version of '$bin'"); my $out = $sshd->_capture_cmd( $bin, $version_flags ); if (defined $out) { - if (my ($ver, $mayor) = $out =~ /^(OpenSSH[_\-](\d+)\.\d+(?:p\d+))/m) { + if (my ($ver, $mayor) = $out =~ /^(OpenSSH[_\-](\d+)\.\d+(?:\.\d+)?(?:p\d+))/m) { if (!defined($min_version) or $mayor >= $min_version) { $sshd->_log("executable version is $ver, selecting it!"); $sshd->{$slot} = $bin;
Thanks, applied in 0.05_01

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to