From bd738fda8a5808c82fe451323995a3bb0eed8906 Mon Sep 17 00:00:00 2001 From: kylecarbs Date: Sun, 1 May 2022 18:12:33 +0000 Subject: [PATCH] fix: Remove unnecessary warnings on SSH This disables the "Warning: Permanently added 'hostname' (RSA) to the list of known hosts." message from appearing on every SSH. This happens because we ignore the known hosts. --- cli/configssh.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli/configssh.go b/cli/configssh.go index b58e2c481c57d..5e32f8c779314 100644 --- a/cli/configssh.go +++ b/cli/configssh.go @@ -106,6 +106,9 @@ func configSSH() *cobra.Command { // Without this, the "REMOTE HOST IDENTITY CHANGED" // message will appear. "\tUserKnownHostsFile=/dev/null", + // This disables the "Warning: Permanently added 'hostname' (RSA) to the list of known hosts." + // message from appearing on every SSH. This happens because we ignore the known hosts. + "\tLogLevel ERROR", ) if !skipProxyCommand { configOptions = append(configOptions, fmt.Sprintf("\tProxyCommand %q --global-config %q ssh --stdio %s", binaryFile, root, hostname))