From ccfa6d9f8da7fe2de2464643432861029dcecc27 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Tue, 25 Feb 2020 16:32:13 +0100 Subject: [PATCH] fix libssh strict --- centreon/plugins/backend/ssh/libssh.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centreon/plugins/backend/ssh/libssh.pm b/centreon/plugins/backend/ssh/libssh.pm index b0d740895..d38445166 100644 --- a/centreon/plugins/backend/ssh/libssh.pm +++ b/centreon/plugins/backend/ssh/libssh.pm @@ -68,7 +68,7 @@ sub check_options { if (defined($options{option_results}->{ssh_priv_key}) && $options{option_results}->{ssh_priv_key} ne ''); $self->{ssh}->options(user => $options{option_results}->{ssh_username}) if (defined($options{option_results}->{ssh_username}) && $options{option_results}->{ssh_username} ne ''); - $self->{ssh_strict_connect} = defined($options{option_results}->{libssh_strict_connect}) ? 1 : 0; + $self->{ssh_strict_connect} = defined($options{option_results}->{libssh_strict_connect}) ? 0 : 1; } sub connect {