From 01ba0c8f49ebc780f440c01796275deb7c0017d9 Mon Sep 17 00:00:00 2001 From: Pierre Gerbelot Date: Fri, 3 Jan 2025 12:14:34 +0100 Subject: [PATCH] feat: add option UserKnownHostsFile=/dev/null when connection k9s --- cmd/admin_k9s.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/admin_k9s.go b/cmd/admin_k9s.go index 7693cd1..65505d5 100644 --- a/cmd/admin_k9s.go +++ b/cmd/admin_k9s.go @@ -114,6 +114,7 @@ func setupSSHConnection(ctx context.Context) (*exec.Cmd, error) { sshArgs := []string{ "-N", "-D", "1080", "-o", "StrictHostKeychecking=no", + "-o", "UserKnownHostsFile=/dev/null", "-o", "ServerAliveInterval=10", "-o", "ServerAliveCountMax=3", "-o", "TCPKeepAlive=yes",