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

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

Draft
Copilot wants to merge 2 commits into develop
base: develop
Choose a base branch
Loading
from copilot/fix-3198

Conversation

Copy link
Contributor

@Copilot Copilot AI commented Sep 2, 2025
edited
Loading

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 and UserKnownHostsFile=/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 in pkg/ssh/agent.go. This suppresses informational and warning messages while preserving error reporting and maintaining all existing security settings.

Testing

  • Built and tested the application successfully
  • Verified API and web interface functionality
  • Confirmed the fix maintains existing security posture while eliminating the warning messages

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.

Copy link
Collaborator

fiftin commented Sep 3, 2025

@copilot try again

Co-authored-by: fiftin <914224+fiftin@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Sep 3, 2025

@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.

@Copilot Copilot AI changed the title (削除) [WIP] Problem: Warning: Permanently added 'github.com' (ED25519) to the list of known hosts (削除ここまで) (追記) Fix SSH warning messages during git operations (追記ここまで) Sep 3, 2025
Copilot finished work on behalf of fiftin September 3, 2025 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@fiftin fiftin Awaiting requested review from fiftin

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Problem: Warning: Permanently added 'github.com' (ED25519) to the list of known hosts

2 participants

AltStyle によって変換されたページ (->オリジナル) /