From d265c3414937f0c415c51c7c2eb1d3eaad2210f3 Mon Sep 17 00:00:00 2001 From: boerwastaken Date: Mon, 4 Sep 2017 11:43:48 +0900 Subject: [PATCH] btrbk: make SSH minimally chatty (always add '-q' option) Fixes digint/btrbk#179: When SSH is chatty (informing of host key rollover etc) the remote command output parser borks. --- btrbk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/btrbk b/btrbk index 8e39a49..f30105e 100755 --- a/btrbk +++ b/btrbk @@ -1826,7 +1826,7 @@ sub vinfo_rsh($;@) my $ssh_identity = config_key($config, "ssh_identity"); my $ssh_compression = config_key($config, "ssh_compression"); my $ssh_cipher_spec = config_key($config, "ssh_cipher_spec") // "default"; - my @ssh_options; + my @ssh_options = ('-q'); push(@ssh_options, '-p', $ssh_port) if($ssh_port ne "default"); push(@ssh_options, '-c', $ssh_cipher_spec) if($ssh_cipher_spec ne "default"); if($ssh_identity) {