Christian Vogel chris at
Sat Dec 13 02:55:25 EST 2003

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.");


Caution.  Blade is sharp.  Keep out of children.

More information about the openssh-unix-dev mailing list