Skip to content

Commit 34dbca7

Browse files
authored
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.
1 parent 9b37a0d commit 34dbca7

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy