Skip to content
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

Enable SSH Connection Sharing #84

Open
tknerr opened this issue Mar 17, 2015 · 2 comments
Open

Enable SSH Connection Sharing #84

tknerr opened this issue Mar 17, 2015 · 2 comments

Comments

@tknerr
Copy link
Owner

tknerr commented Mar 17, 2015

...not sure if that would work on Windows, but we could give it a try at least:
http://blogs.perl.org/users/smylers/2011/08/ssh-productivity-tips.html

@tknerr
Copy link
Owner Author

tknerr commented Mar 17, 2015

First experimentation does not yield usable results.

With plain set-enved cmd.exe I added this to ~/.ssh/config:

ControlMaster auto
ControlPath w:/tmp/ssh_mux_%h_%p_%r

The first connection succeeds, on the second one I get errors like these on the new connection:

W:\>ssh user@host
mux_client_request_session: read from master failed: Connection reset by peer
ControlSocket w:/tmp/ssh_mux_jdev2.haufe-ep.de_22_jeeapp already exists, disabling multiplexing

..and on the existing connection:

user@host:~$ mm_receive_fd: no message header
process_mux_new_session: failed to receive fd 0 from slave

@tknerr
Copy link
Owner Author

tknerr commented Mar 17, 2015

Within a git-bash.bat session that was started from within a set-enved session (we want to keep the environment) you have to use a different path name:

ControlMaster auto
ControlPath /w/tmp/ssh_mux_%h_%p_%r

The errors are then slightly different:

$ ssh user@host
mm_send_fd: file descriptor passing not supported
mux_client_request_session: send fds failed

...and on the existing connection:

user@host:~$ mm_receive_fd: file descriptor passing not supported
process_mux_new_session: failed to receive fd 0 from slave

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant