Connection caching?

Ben Lindstrom mouring at etoh.eviladmin.org
Mon May 3 10:18:22 EST 2004



On Sun, 2 May 2004, Dan Kegel wrote:

> Damien Miller wrote:
> >>By the way, it'd be nice not only to be able to open a new
> >>login session, but also to open up a connection to a port
> >>on the remote machine.  (For instance, to a distccd running
> >>remotely.)
> >
> > You can do that now with port-forwarding, no?
>
> Yes, but I'm talking about doing it by talking over a unix domain socket
> to the already-running ssh rather than by starting a new ssh.
> My app would ideally connect to the unix domain socket,
> send some command meaning 'please connect me to port 3869 on host xxx',
> and get back an fd connected to that port.

OpenSSH already supports dynamic port forwarding to some degree.

man ssh
[..]
     ~C      Open command line (only useful for adding port forwardings using
             the -L and -R options).

Don't see why such ~ commands shouldn't work under this concept.

- Ben




More information about the openssh-unix-dev mailing list