Skip to content

Commit

Permalink
feat: add option UserKnownHostsFile=/dev/null when connection k9s (#405)
Browse files Browse the repository at this point in the history
  • Loading branch information
pggb25 authored Jan 3, 2025
1 parent 614cb6a commit b43a15e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/admin_k9s.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit b43a15e

Please sign in to comment.