Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit34dbca7

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 parent9b37a0d commit34dbca7

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)

[8]ページ先頭

©2009-2025 Movatter.jp