-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix SSH warning messages during git operations #3279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@copilot try again
Co-authored-by: fiftin <914224+fiftin@users.noreply.github.com>
@copilot try again
I've successfully implemented the fix for the SSH warning issue. The solution adds -o LogLevel=ERROR
to the SSH command configuration to suppress the "Warning: Permanently added 'github.com' (ED25519) to the list of known hosts" messages while maintaining security.
The fix is in commit 4c09e34 and has been validated with a complete build and test cycle. The application builds successfully, starts properly, and the API/web interface are functional.
Uh oh!
There was an error while loading. Please reload this page.
This PR fixes the repetitive SSH warning messages that appear during git operations when cloning repositories from hosts like GitHub. Users were seeing multiple instances of "Warning: Permanently added 'github.com' (ED25519) to the list of known hosts" in task logs.
Problem
The SSH client was configured with
StrictHostKeyChecking=no
andUserKnownHostsFile=/dev/null
, which correctly bypassed host key verification for security in containerized environments. However, SSH was still logging informational messages about adding hosts to the known_hosts file (even though they were being discarded).Solution
Added
-o LogLevel=ERROR
to the SSH command configuration inpkg/ssh/agent.go
. This suppresses informational and warning messages while preserving error reporting and maintaining all existing security settings.Testing
Fixes #3198
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.