diff --git a/kubectl-exec b/kubectl-exec index 9c54a3b..0c69669 100755 --- a/kubectl-exec +++ b/kubectl-exec @@ -128,7 +128,7 @@ read -p "Enter the windows node ssh user: " WINDOWSSSHUSER "stdin": true, "stdinOnce": true, "tty": true, - "command": [ "nsenter", "--target", "1", "--mount", "--uts", "--ipc", "--net", "--pid", "--", "ssh", "$WINDOWSSSHUSER@$WINNODEIP" ] + "command": [ "nsenter", "--target", "1", "--mount", "--uts", "--ipc", "--net", "--pid", "--", "ssh", "-o", "StrictHostKeyChecking=no", "$WINDOWSSSHUSER@$WINNODEIP" ] } ] }