Logging of wrong pubkey auth

Jan Gehring pr0gm4 at linoratix.com
Thu Jul 15 03:10:28 EST 2004


Hm,

the attachement was cut ...

-----8<-----8<-------8<-------

*** monitor.c.orig	2004-07-14 17:26:44.329962192 +0200
--- monitor.c	2004-07-14 17:27:06.511590072 +0200
***************
*** 990,995 ****
--- 990,999 ----
  	debug3("%s: key %p is %s",
  	    __func__, key, allowed ? "allowed" : "disallowed");
  
+ 	if(! allowed) {
+ 		logit("Illegal user %.100s from %.100s", authctxt->user,get_remote_ipaddr());
+ 	}
+ 		
  	buffer_clear(m);
  	buffer_put_int(m, allowed);
  	buffer_put_int(m, forced_command != NULL);

-----8<-----8<-------8<-------


 
> patch against 3.8.1p1
> $ patch -p0 < /path/to/keyauth-loggin.patch
> 
> 
> Kindly regards,
> 
> Jan Gehring
> 
> 




More information about the openssh-unix-dev mailing list