Skip to content

feat(cli/ssh): allow multiple remote forwards and allow missing local file #11648

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

Merged
merged 4 commits into from
Jan 19, 2024

Conversation

mafredri
Copy link
Member

@mafredri mafredri commented Jan 16, 2024

While working on #11631 I found myself needing the ability to do multiple remote forwards to compare the behavior between our client and OpenSSH. Created a PR for this since I think it's a useful addition.

Similar to OpenSSH, we no longer require the presence of the local file. Its presence is only relevant at exactly the moment someone tries to connect to it. Likewise, we don't enforced the presence at runtime, so to achieve this you'd have to fool the SSH command during init, and then you can do whatever you want with the socket afterwards.

@mafredri mafredri force-pushed the mafredri/feat-cli-ssh-allow-multiple-remote-forwards branch from 0e66663 to c2dea4a Compare January 17, 2024 12:13
@mafredri mafredri changed the title feat(cli/ssh): allow multiple remote forwards feat(cli/ssh): allow multiple remote forwards and allow missing local file Jan 17, 2024
@mafredri mafredri marked this pull request as ready for review January 17, 2024 12:55
Copy link
Contributor

@spikecurtis spikecurtis left a comment

Choose a reason for hiding this comment

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

Would be nice to have a test case that specifies multiple -R

@mafredri mafredri force-pushed the mafredri/feat-cli-ssh-allow-multiple-remote-forwards branch 2 times, most recently from 8da5d2c to f752bb6 Compare January 19, 2024 12:25
@mafredri mafredri force-pushed the mafredri/feat-cli-ssh-allow-multiple-remote-forwards branch from f752bb6 to f99f490 Compare January 19, 2024 12:25
@mafredri mafredri merged commit 200a87e into main Jan 19, 2024
@mafredri mafredri deleted the mafredri/feat-cli-ssh-allow-multiple-remote-forwards branch January 19, 2024 13:21
@github-actions github-actions bot locked and limited conversation to collaborators Jan 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants