Movatterモバイル変換


[0]ホーム

URL:


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

feat: add configurable SSH host key algorithm support#18866

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
blink-so wants to merge7 commits intomain
base:main
Choose a base branch
Loading
fromfeat/configurable-ssh-host-key-algorithm

Conversation

blink-so[bot]
Copy link
Contributor

Summary

Adds support for configurable SSH host key algorithms to improve compatibility with modern SSH clients like Visual Studio 2022 that no longer support RSA host keys.

Changes

  • AddHostKeyAlgorithm field toagentssh.Config - allows configuration of SSH host key algorithm
  • Implement Ed25519 key generation - adds deterministic Ed25519 key generation alongside existing RSA support
  • Add CLI flag--ssh-host-key-algorithm - with environment variableCODER_AGENT_SSH_HOST_KEY_ALGORITHM
  • Support both 'rsa' and 'ed25519' algorithms - with RSA as default for backward compatibility
  • UpdateCoderSigner function - now accepts algorithm parameter and supports both key types

Testing

  • ✅ Code compiles successfully
  • ✅ CLI flag appears in help output
  • ✅ RSA key generation works (default behavior)
  • ✅ Ed25519 key generation works
  • ✅ Invalid algorithms return proper errors
  • ✅ Backward compatibility maintained

Usage

# Use Ed25519 (recommended for modern clients)coder agent --ssh-host-key-algorithm ed25519# Or via environment variableCODER_AGENT_SSH_HOST_KEY_ALGORITHM=ed25519 coder agent# RSA remains the defaultcoder agent# Uses RSA

Resolves

This addresses the Visual Studio 2022 compatibility issue where newer SSH clients reject RSA host keys, allowing users to configure Ed25519 which is widely supported and more secure.

blink-sobotand others added3 commitsJuly 15, 2025 07:53
Adds support for configurable SSH host key algorithms to improvecompatibility with modern SSH clients like Visual Studio 2022.Changes:- Add HostKeyAlgorithm field to agentssh.Config- Implement Ed25519 key generation in CoderSigner function- Add CLI flag --ssh-host-key-algorithm with env var support- Support both 'rsa' (default) and 'ed25519' algorithms- Maintain backward compatibility with RSA as defaultResolves compatibility issues with SSH clients that no longersupport RSA host keys.Co-authored-by: kylecarbs <7122116+kylecarbs@users.noreply.github.com>
Remove trailing whitespace from empty lines in agentssh.goto satisfy the formatting requirements.Co-authored-by: kylecarbs <7122116+kylecarbs@users.noreply.github.com>
@ethanndickson
Copy link
Member

@blink instead of making it configurable, can't we just support both algorithms simultaneously?

blink-so[bot] reacted with eyes emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@ethanndickson

[8]ページ先頭

©2009-2025 Movatter.jp