[feature suggestion] sshd should log the listening port number while logging errors/warnings

Yuri yuri at rawbw.com
Wed Jun 7 13:59:34 AEST 2023


On 6/6/23 13:46, Christian Weisgerber wrote:
> It has been upgraded over the course of the 13.x branch: 13.2 has 
> OpenSSH 9.2p1. 


The current version of OpenSSH in the FreeBSD 13.x branch is 9.3p1


But the log doesn't contain the listening port information,
For example, /var/log/messages has:
 > Jun  6 19:05:02 xx sshd[6528]: error: 
Fssh_kex_exchange_identification: read: Connection reset by peer

The same incident also has these lines in /var/log/auth.log:
 > Jun  6 19:05:02 xx sshd[6528]: error: 
Fssh_kex_exchange_identification: read: Connection reset by peer
 > Jun  6 19:05:02 xx sshd[6528]: Connection reset by 69.164.217.245 
port 47272

But the listening port information isn't printed.


What is wrong?




Yuri




More information about the openssh-unix-dev mailing list