crypto icon indicating copy to clipboard operation
crypto copied to clipboard

ssh: add openssh controlmaster socket support

Open y3llowcake opened this issue 3 years ago • 7 comments

ssh: add openssh controlmaster socket support

Adds support for establishing SSH sessions over an existing "ControlMaster" [unix domain] socket in proxy mode.

Details of the protocol can be found here: https://github.com/openssh/openssh-portable/blob/master/PROTOCOL.mux More details about ControlMaster sockets can be found here: https://linux.die.net/man/5/ssh_config

Note that proxy mode is a relatively new feature of OpenSSH. If you are using an older version you will likely receive "unsupported request" during the handshake. I have successfully tested with OpenSSH_7.4p1.

https://github.com/golang/go/issues/31874 https://github.com/golang/go/issues/32958

y3llowcake avatar Feb 04 '22 20:02 y3llowcake

This PR (HEAD: a6941cd1c4e3c4a5b81894340b80e43ff66fb10a) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/crypto/+/383374 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off) See the Wiki page for more info

gopherbot avatar Feb 04 '22 20:02 gopherbot

Message from Han-Wen Nienhuys:

Patch Set 1:

(4 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/383374. After addressing review feedback, remember to publish your drafts!

gopherbot avatar Jan 12 '23 17:01 gopherbot

Message from Han-Wen Nienhuys:

Patch Set 1:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/383374. After addressing review feedback, remember to publish your drafts!

gopherbot avatar Jan 12 '23 17:01 gopherbot

Hi @y3llowcake!

Thanks for this, I've been wanting to support ControlMaster sockets in my ssh client. I've tested this pr on top of x/crypto master and it seems to work just fine. What's needed to get this merged?

seveas avatar Mar 19 '23 14:03 seveas

I am not super familiar with the people and process for this project. The reviewer that was assigned to the PR hasn't commented, and there hasn't been much instruction on the issue thread, so it's unclear to me what the next steps are. I'll ping the issue thread again today, I suspect that's the best place to follow along and discuss: https://github.com/golang/go/issues/32958

y3llowcake avatar Mar 23 '23 16:03 y3llowcake

Message from Damien Neil:

Patch Set 1:

(11 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/383374. After addressing review feedback, remember to publish your drafts!

gopherbot avatar Mar 23 '23 17:03 gopherbot

Message from Damien Neil:

Patch Set 1:

(3 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/383374. After addressing review feedback, remember to publish your drafts!

gopherbot avatar Mar 23 '23 17:03 gopherbot