]> asedeno.scripts.mit.edu Git - PuTTY.git/commit - unix/uxplink.c
Implement connection sharing between instances of PuTTY.
authorSimon Tatham <anakin@pobox.com>
Sun, 17 Nov 2013 14:05:41 +0000 (14:05 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 17 Nov 2013 14:05:41 +0000 (14:05 +0000)
commitbb78583ad29084f16db994d66895917e1b20346e
tree4a3b2128c9855175085c625bfed7616cc0493e1d
parentf6f78f835543099d4b5e342ba34f91104862803b
Implement connection sharing between instances of PuTTY.

The basic strategy is described at the top of the new source file
sshshare.c. In very brief: an 'upstream' PuTTY opens a Unix-domain
socket or Windows named pipe, and listens for connections from other
PuTTYs wanting to run sessions on the same server. The protocol spoken
down that socket/pipe is essentially the bare ssh-connection protocol,
using a trivial binary packet protocol with no encryption, and the
upstream has to do some fiddly transformations that I've been
referring to as 'channel-number NAT' to avoid resource clashes between
the sessions it's managing.

This is quite different from OpenSSH's approach of using the Unix-
domain socket as a means of passing file descriptors around; the main
reason for that is that fd-passing is Unix-specific but this system
has to work on Windows too. However, there are additional advantages,
such as making it easy for each downstream PuTTY to run its own
independent set of port and X11 forwardings (though the method for
making the latter work is quite painful).

Sharing is off by default, but configuration is intended to be very
easy in the normal case - just tick one box in the SSH config panel
and everything else happens automatically.

[originally from svn r10083]
30 files changed:
Recipe
config.c
doc/config.but
logging.c
network.h
noshare.c [new file with mode: 0644]
proxy.c
pscp.c
psftp.c
putty.h
settings.c
ssh.c
ssh.h
sshdes.c
sshshare.c [new file with mode: 0644]
unix/uxnet.c
unix/uxplink.c
unix/uxputty.c
unix/uxshare.c [new file with mode: 0644]
windows/window.c
windows/winhelp.h
windows/winnet.c
windows/winnpc.c
windows/winnps.c
windows/winpgnt.c
windows/winplink.c
windows/winsecur.c
windows/winsecur.h
windows/winshare.c [new file with mode: 0644]
x11fwd.c