From 3faa2357f4ea14b850f7b6c2ee861f8c5a1f56b5 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Fri, 24 Apr 2020 11:30:37 +0200 Subject: [PATCH] fix ssh cli --- centreon/plugins/backend/ssh/sshcli.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centreon/plugins/backend/ssh/sshcli.pm b/centreon/plugins/backend/ssh/sshcli.pm index fd8290212..91101e489 100644 --- a/centreon/plugins/backend/ssh/sshcli.pm +++ b/centreon/plugins/backend/ssh/sshcli.pm @@ -57,7 +57,7 @@ sub check_options { $self->{output}->option_exit(); } - push @{$self->{ssh_option}}, '-o="BatchMode yes"'; + push @{$self->{ssh_option}}, '-o=BatchMode yes'; push @{$self->{ssh_option}}, '-l=' . $self->{ssh_username} if (defined($self->{ssh_username}) && $self->{ssh_username} ne ''); push @{$self->{ssh_option}}, '-p=' . $self->{ssh_port} if (defined($self->{ssh_port}) && $self->{ssh_port} ne ''); push @{$self->{ssh_option}}, '-i=' . $self->{ssh_priv_key} if (defined($self->{ssh_priv_key}) && $self->{ssh_priv_key} ne '');