Logging of key fingerprint / comment with v3.4p1

Thomas Binder binder at arago.de
Fri Aug 9 23:36:20 EST 2002


Hi!

On Fri, Aug 09, 2002 at 08:40:18AM +0200, Courtin Bert wrote:
> > will be logged in verbose mode
> > 	LogLevel VERBOSE
> > in sshd_config
> 
> thank you for the hint, but this one doesn't did the trick on my
> server (setting loglevel to 'verbose', killing the daemon and
> starting it again). Maybe I missed some compile time option?

No, but you're using protocol version 1, and Markus' solution only
helps for version 2 of the protocol.

For version 1, I use the attached patch.


Ciao

Thomas


-- 
This is the sort of English up with which I will not put.
		-- Winston Churchill
-------------- next part --------------
diff -u -r openssh-3.4p1.orig/auth-rsa.c openssh-3.4p1/auth-rsa.c
--- openssh-3.4p1.orig/auth-rsa.c	Tue Jun 11 17:47:42 2002
+++ openssh-3.4p1/auth-rsa.c	Tue Jul  2 12:43:58 2002
@@ -259,6 +259,8 @@
 			continue;
 
 		/* break out, this key is allowed */
+ 		log("User %s authenticated by line \"%s\" of %s",
+ 			pw->pw_name, strtok(line, "\r\n"), file);
 		allowed = 1;
 		break;
 	}


More information about the openssh-unix-dev mailing list