diff --git a/pg_backrest_file.pm b/pg_backrest_file.pm index fc0ede724..d92a837e7 100644 --- a/pg_backrest_file.pm +++ b/pg_backrest_file.pm @@ -80,7 +80,7 @@ sub BUILD &log(TRACE, "connecting to backup ssh host " . $self->{strBackupHost}); # !!! This could be improved by redirecting stderr to a file to get a better error message - $self->{oBackupSSH} = Net::OpenSSH->new($self->{strBackupHost}, master_stderr_discard => true, timeout => 300, user => $self->{strBackupUser}, master_opts => [-o => $strOptionSSH]); + $self->{oBackupSSH} = Net::OpenSSH->new($self->{strBackupHost}, timeout => 300, user => $self->{strBackupUser}, master_opts => [-o => $strOptionSSH]); $self->{oBackupSSH}->error and confess &log(ERROR, "unable to connect to $self->{strBackupHost}: " . $self->{oBackupSSH}->error); } @@ -90,7 +90,7 @@ sub BUILD &log(TRACE, "connecting to database ssh host $self->{strDbHost}"); # !!! This could be improved by redirecting stderr to a file to get a better error message - $self->{oDbSSH} = Net::OpenSSH->new($self->{strDbHost}, master_stderr_discard => true, timeout => 300, user => $self->{strDbUser}, master_opts => [-o => $strOptionSSH]); + $self->{oDbSSH} = Net::OpenSSH->new($self->{strDbHost}, timeout => 300, user => $self->{strDbUser}, master_opts => [-o => $strOptionSSH]); $self->{oDbSSH}->error and confess &log(ERROR, "unable to connect to $self->{strDbHost}: " . $self->{oDbSSH}->error); } }