]> asedeno.scripts.mit.edu Git - PuTTY_svn.git/commit
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)
commit467190058b0d89867c0fb1a38240b0ff1238c749
tree4a3b2128c9855175085c625bfed7616cc0493e1d
parent544ea1681a5c871a9b449e3aff699e2e5b570fab
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.

git-svn-id: http://svn.tartarus.org/sgt/putty@10083 cda61777-01e9-0310-a592-d414129be87e
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