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))