"User child pid" logging

Claes Leufven rinsan at lysator.liu.se
Mon Nov 21 21:15:37 EST 2005


Hi!

It would be easier to trace a connection in the logs if sshd reported
the change of pid with LogLevel set to verbose instead of debug2. Is
it possible to have it changed?

Regards
Claes Leufvén

Here is a patch for it:

--- sshd.c_orig	2005-11-21 10:51:08.000000000 +0100
+++ sshd.c	2005-11-21 10:51:11.000000000 +0100
@@ -652,7 +652,7 @@
 	if (pmonitor->m_pid == -1)
 		fatal("fork of unprivileged child failed");
 	else if (pmonitor->m_pid != 0) {
-		debug2("User child is on pid %ld", (long)pmonitor->m_pid);
+		verbose("User child is on pid %ld", (long)pmonitor->m_pid);
 		close(pmonitor->m_recvfd);
 		buffer_clear(&loginmsg);
 		monitor_child_postauth(pmonitor);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 185 bytes
Desc: not available
Url : http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20051121/168a8d14/attachment.bin 


More information about the openssh-unix-dev mailing list