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

fix(cli): do not overwrite repeated SSH options in config-ssh#13819

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

Merged

Conversation

mafredri
Copy link
Member

This PR changes theconfig-ssh such that it relies on SSH config option prioritization (first come, first served) to retain the behavior when options supporting multiple entries are defined. We also retain the ability to remove options by setting them to an empty value. Removal is perhaps the strangest part of this, and ultimately we may be better served by a different method of removing an option, but I think this is fine for now.

Fixes#11593

@mafredrimafredri self-assigned thisJul 8, 2024
@mafredrimafredri requested review fromEmyrk andmtojekJuly 8, 2024 16:01
@mafredrimafredriforce-pushed themafredri/fix-configssh-bad-duplicate-removal branch from65d83f2 to8e131ebCompareJuly 8, 2024 16:12
@Emyrk
Copy link
Member

Just to make sure I understand, this is because you can have multipleRemoteForward keys in an ssh config?

TIL keys can be duplicated.

@mafredri
Copy link
MemberAuthor

Just to make sure I understand, this is because you can have multipleRemoteForward keys in an ssh config?

TIL keys can be duplicated.

Yeah, they're additive in the case ofRemoteForward. Applies to a few other keys as well. And since OpenSSH handles duplications natively, I decided it's best to rely on that property (order matters for non-duplicatable keys).

Emyrk reacted with thumbs up emoji

Copy link
Member

@mtojekmtojek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

👍

@mafredrimafredri merged commit978364b intomainJul 9, 2024
28 checks passed
@mafredrimafredri deleted the mafredri/fix-configssh-bad-duplicate-removal branchJuly 9, 2024 06:44
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJul 9, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@EmyrkEmyrkEmyrk approved these changes

@kylecarbskylecarbskylecarbs approved these changes

@mtojekmtojekmtojek approved these changes

Assignees

@mafredrimafredri

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

CoderCLI incorrectly removes duplicate RemoteForward entries in ssh-config
4 participants
@mafredri@Emyrk@kylecarbs@mtojek

[8]ページ先頭

©2009-2025 Movatter.jp