sshd(8) used to log connection information when ClientAliveInterval disconnected an idle client.
It used to look something like this a while back: Oct 16 14:42:08 eee sshd[83709]: packet_write_poll: Connection from 192.0.2.97 port 57608: Host is down Now it looks like this: Oct 16 21:18:56 eee sshd[94170]: Timeout, client not responding. It would be very useful to have the connection information back again. Here is a cargo-culted modification that approximates the old style. /Lars Index: src/usr.bin/ssh/serverloop.c =================================================================== RCS file: /cvs/src/usr.bin/ssh/serverloop.c,v retrieving revision 1.198 diff -u -p -u -r1.198 serverloop.c --- src/usr.bin/ssh/serverloop.c 12 Sep 2017 06:35:32 -0000 1.198 +++ src/usr.bin/ssh/serverloop.c 16 Oct 2017 18:58:01 -0000 @@ -165,7 +165,8 @@ client_alive_check(struct ssh *ssh) /* timeout, check to see how many we have had */ if (packet_inc_alive_timeouts() > options.client_alive_count_max) { - logit("Timeout, client not responding."); + logit("Timeout, client not responding from %s on port %d.", + ssh_remote_ipaddr(ssh), ssh_remote_port(ssh) ); cleanup_exit(255); }