Skip to content

Mux transport for client (rebased, the second) - #1931

Open
ltalirz wants to merge 8 commits into
paramiko:mainfrom
ltalirz:mux
Open

ltalirz wants to merge 8 commits into
paramiko:mainfrom
ltalirz:mux

Conversation

@ltalirz

@ltalirz ltalirz commented Nov 23, 2021

Copy link
Copy Markdown

Again a rebase of #1857

radssh and others added 7 commits November 24, 2021 00:35
Basic support - Transport connect via Unix domain socket, and bypass the protocol/kex/userauth stages, and just use proxy. Some jiggling of the packetizer pad byte calculations
ControlMaster proxy seems to forward global_request messages, but swallows the global_response, so the proxied client should never wait for the response. For tcpip-forward, the client can't distinguish between success and failure.
kex_init is even more borky, it seems. The proxy forwards the initial kex_init, but fields the server reply as a server initiated kex_init, so the ContolMaster sends another kex_init in response. The server, upon getting a kex_init message while already processing the proxied one, boots the connection altogether (per RFC4253 7.1)
Rather than complicate the retry logic, have Transport raise exception, and allow retry only within SSHClient.
Change mux_path to controlpath, to be more consistent with OpenSSH terminology
flake8 & black format issues
plus a typo I'm just going to attribute to spellcheck
@vsoch

vsoch commented Dec 10, 2021

Copy link
Copy Markdown

Would really love to see this merged soon! ♥️

@oferchen

oferchen commented Jan 6, 2022 •

Copy link
Copy Markdown

Thanks for the efforts invested in this patch! I really wanted to use ssh controlmaster with paramiko.

paramiko-controlmaster
I keep an updated repository with the latest patch and latest paramiko if you like to test this feature

Ofer

@bitprophet

bitprophet commented Mar 12, 2022 •

Copy link
Copy Markdown
Member

See #852 (comment)

@bitprophet bitprophet removed this from the Next feature release milestone Mar 12, 2022
@tuvalkohl

Copy link
Copy Markdown

Thanks for the efforts invested in this patch! I really wanted to use ssh controlmaster with paramiko.

paramiko-controlmaster I keep an updated repository with the latest patch and latest paramiko if you like to test this feature

Ofer

Hey @oferchen, the version in your repo includes the support for a muxing ControlPath?
How can I use the code from your repo?
Do I need to clone the repo and build locally?

@ghost-ng

Copy link
Copy Markdown

any way this can get merged soon?

@oferchen

oferchen commented Aug 1, 2023

Copy link
Copy Markdown

Thanks for the efforts invested in this patch! I really wanted to use ssh controlmaster with paramiko.
paramiko-controlmaster I keep an updated repository with the latest patch and latest paramiko if you like to test this feature
Ofer

Hey @oferchen, the version in your repo includes the support for a muxing ControlPath? How can I use the code from your repo? Do I need to clone the repo and build locally?

Yep, ControlPath is self.mux_path

Ofer

@BillyGLW

Copy link
Copy Markdown

just to remind the question from 6 months ago - #1931 (comment) - could I expect delivery of that feature?

@samayvar

Copy link
Copy Markdown

Hi @bitprophet, is there any update when this can be merged?

@abach

abach commented Feb 21, 2025

Copy link
Copy Markdown

Hello, is there anything we can do to have this merged?

@oferchen

oferchen commented Feb 21, 2025 •

Copy link
Copy Markdown

Hello, is there anything we can do to have this merged?

Committer should use a branch other than main for pull.
@ltalirz Can you please submit the required modifications?

Ofer

@ltalirz

ltalirz commented Feb 24, 2025

Copy link
Copy Markdown
Author

Hey, please someone take my branch and reopen the pull request, I am not going to continue working on this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature request eval needed Triage -> maintainer signal Feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.