bills-kitchen
bills-kitchen copied to clipboard
Enable SSH Connection Sharing
...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
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
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