Skip to content

Commit bd738fd

Browse files
committed
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.
1 parent b948f2d commit bd738fd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cli/configssh.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ func configSSH() *cobra.Command {
106106
// Without this, the "REMOTE HOST IDENTITY CHANGED"
107107
// message will appear.
108108
"\tUserKnownHostsFile=/dev/null",
109+
// This disables the "Warning: Permanently added 'hostname' (RSA) to the list of known hosts."
110+
// message from appearing on every SSH. This happens because we ignore the known hosts.
111+
"\tLogLevel ERROR",
109112
)
110113
if !skipProxyCommand {
111114
configOptions = append(configOptions, fmt.Sprintf("\tProxyCommand %q --global-config %q ssh --stdio %s", binaryFile, root, hostname))

0 commit comments

Comments
 (0)