Repository navigation
feat(ssh): wire algorithm fields and connect timeout from sshconfig - #366
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR wires additional OpenSSH ssh_config-derived settings into the in-process SSH implementation so that rig’s Go SSH client respects more of the user’s SSH configuration.
Changes:
- Plumbs
Ciphers,KexAlgorithms,MACs, andHostKeyAlgorithmsfromsshconfigintogolang.org/x/crypto/ssh.ClientConfig. - Introduces use of
ConnectTimeoutby configuring the TCP dialer timeout. - Adds unit tests validating algorithm field wiring and nil/empty behavior.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
protocol/ssh/connection.go |
Applies ssh_config algorithm preferences to ssh.ClientConfig, gates agent usage based on IdentitiesOnly, and applies ConnectTimeout during dialing. |
protocol/ssh/connection_test.go |
Adds tests covering algorithm-field propagation and nil behavior in clientConfig. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
kke
force-pushed
the
ssh-config-algorithm-fields
branch
from
June 3, 2026 20:59
edf1944 to
d3d1acc
Compare
kke
force-pushed
the
ssh-config-algorithm-fields
branch
from
June 3, 2026 21:51
d3d1acc to
b25317e
Compare
kke
force-pushed
the
ssh-config-algorithm-fields
branch
from
June 4, 2026 06:30
741f386 to
1c4a925
Compare
kke
force-pushed
the
ssh-config-algorithm-fields
branch
from
June 4, 2026 07:41
1c4a925 to
56b9ce0
Compare
kke
force-pushed
the
ssh-config-algorithm-fields
branch
from
June 4, 2026 08:51
85b272f to
7c1d272
Compare
kke
force-pushed
the
ssh-config-algorithm-fields
branch
from
June 4, 2026 09:58
7c1d272 to
94ecdeb
Compare
…367) Signed-off-by: Kimmo Lehto <klehto@mirantis.com>
kke
force-pushed
the
ssh-config-algorithm-fields
branch
from
June 4, 2026 10:30
94ecdeb to
534a1c8
Compare
Signed-off-by: Kimmo Lehto <klehto@mirantis.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.