fix ssh cli

This commit is contained in:
garnier-quentin 2020-04-24 11:30:37 +02:00
parent 84cb558659
commit 8c37ef2880
1 changed files with 1 additions and 1 deletions

View File

@ -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 '');