Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: OpenSSH: Dev

[PATCH/RFC 0/6] New mux client request to list open tcp forwardings.

 

 

OpenSSH dev RSS feed   Index | Next | Previous | View Threaded


bert.wesarg at googlemail

May 3, 2012, 4:33 AM

Post #1 of 3 (270 views)
Permalink
[PATCH/RFC 0/6] New mux client request to list open tcp forwardings.

These patches implement a new mux client request to list the currently opened
TCP forwardings. It also removes some todos regarding keeping the list
of forwardings in the options up-to-date.

Bert Wesarg (6):
attach the forwarding type to struct Forward
merge local and remote forward lists
generate unique ids for forwardings to be used for identification
remove closed forwardings from options
maintain lists of forwards when changed from a mux client command
line
[mux.c] new request to list open forwardings

PROTOCOL.mux | 36 ++++++++++-
clientloop.c | 40 +++++++++---
mux.c | 200 ++++++++++++++++++++++++++++------------------------------
readconf.c | 128 +++++++++++++++++++------------------
readconf.h | 23 ++++---
ssh.c | 103 +++++++++++++++++++-----------
sshconnect.c | 8 +-
7 files changed, 308 insertions(+), 230 deletions(-)

--
1.7.9.rc0.542.g07ca1

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev [at] mindrot
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev


bert.wesarg at googlemail

May 3, 2012, 4:33 AM

Post #2 of 3 (268 views)
Permalink
[PATCH/RFC 0/6] New mux client request to list open tcp forwardings. [In reply to]

These patches implement a new mux client request to list the currently opened
TCP forwardings. It also removes some todos regarding keeping the list
of forwardings in the options up-to-date.

Bert Wesarg (6):
attach the forwarding type to struct Forward
merge local and remote forward lists
generate unique ids for forwardings to be used for identification
remove closed forwardings from options
maintain lists of forwards when changed from a mux client command
line
[mux.c] new request to list open forwardings

PROTOCOL.mux | 36 ++++++++++-
clientloop.c | 40 +++++++++---
mux.c | 200 ++++++++++++++++++++++++++++------------------------------
readconf.c | 128 +++++++++++++++++++------------------
readconf.h | 23 ++++---
ssh.c | 103 +++++++++++++++++++-----------
sshconnect.c | 8 +-
7 files changed, 308 insertions(+), 230 deletions(-)

--
1.7.9.rc0.542.g07ca1

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev [at] mindrot
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev


alex at alex

May 3, 2012, 5:35 AM

Post #3 of 3 (266 views)
Permalink
Re: [PATCH/RFC 0/6] New mux client request to list open tcp forwardings. [In reply to]

--On 3 May 2012 13:33:46 +0200 Bert Wesarg <bert.wesarg [at] googlemail>
wrote:

> These patches implement a new mux client request to list the currently
> opened TCP forwardings. It also removes some todos regarding keeping the
> list of forwardings in the options up-to-date.

Interesting.

I have a related application where a process on the /server/ wants to
know the list of port forwardings. In essence I have a large number of
clients all connecting using public key, and all forwarding one of
their local ports with -R, and dynamically allocating a listen port
on the server side. The server needs to establish (without being able
to trust the client) which port an ssh session with a given public
key is listening on. Currently I do this by a combination of
forcing a command on the server side, and some nasty hackery with lsof
type things. It would be useful if there were something that could
be queried on the server to definitively establish which forwarded
port was what, particularly as my method does not work with more
than one forwarded port (hence fails with autossh).

--
Alex Bligh
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev [at] mindrot
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev

OpenSSH dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.