Remote-Port

Christian Vogel
Fri, 12 Dec 2003 15:55:25 -0000

On Fri, Dec 12, 2003 at 01:57:45PM +0100, Veiel Uwe
wrote:
> Hello *,
>
> for security logging purposes, I would like to record the actual
> remote port an ssh connection uses after the connection has been
> established. Could someone kindly point me to the part of the ssh
> client source code where such information is available?

Something like that?

## Which debug message are we interested in?
chris at pi2105:~/openssh-3.7p1$ ssh -v SOME_HOST_NAME
(...)
debug1: Connection established.
(...)

## Where is it generated?
chris at pi2105:~/openssh-3.7p1$ grep -n "\"Connection
established" *.c
sshconnect.c:418:       debug("Connection established.");

	Chris

--
Caution.  Blade is sharp.  Keep out of children.