After the previous small patch submitted to log info
about X11 forwarding, I've moved on to trying to log
information about remote port forwarding.
The remote hostname is showing up as 'localhost'.
That's not useful.
sshd -ddd shows the following in the midst of an
incoming "ssh -R 22220:faron:22 linus". Obviously
I want to see the word 'faron' somewhere but don't.
That seems like a bug to me.
...
debug1: server_input_global_request: rtype tcpip-forward want_reply 1
debug1: server_input_global_request: tcpip-forward listen localhost port
22220
debug3: channel_setup_fwd_listener: type 11 wildcard 0 addr NULL
debug1: Local forwarding listening on 127.0.0.1 port 22220.
...
Fantastic! But half the useful information.
Okay, maybe I have to connect through the forward to get
the full info for some reason.
I see the following from that same sshd when I 'tickle' the
forward on linus by doing 'ssh -p 22220 localhost'
(which takes me to faron:22 properly)
...
debug1: Connection to port 22220 forwarding to localhost port 0 requested.
...
debug1: channel 2: free: forwarded-tcpip: listening port 22220 for
localhost port 0, connect from 127.0.0.1 port 49644, nchannels 3
debug3: channel 2: status: The following connections are open:
#1 server-session (t4 r0 i0/0 o0/0 fd 12/10 cfd -1)
#2 forwarded-tcpip: listening port 22220 for localhost port 0,
connect from 127.0.0.1 port 49644 (t4 r1 i3/0 o3/0 fd 11/11 cfd -1)
...
Again, only half of the useful information.
This time with other information: localhost port 0
That's not useful :)
The problem is, I cannot figure out on my own where 'faron'
is being lost in the code in order to log it.