fix: Remove unnecessary warnings on SSH (#1243)

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.
This commit is contained in:
Kyle Carberry
2022-05-01 20:31:22 -05:00
committed by GitHub
parent 9b37a0de31
commit 34dbca7166
+3
View File
@@ -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))