Re: Logging attempted passwords

From: Bartek Krajnik (bmk_at_bicom.pl)
Date: 10/22/04

  • Next message: Jerry: "Re: Controlling ssh from an external program"
    Date:	Fri, 22 Oct 2004 13:52:18 +0200
    To: secureshell@securityfocus.com
    
    
    

    On 20-10-2004 at 03:12:57PM -0700, David Vestal wrote:
    DV> Is it possible to have sshd log the passwords and times of failed logins? If
    DV> so how to I need to change my config to do so?
    DV>
    DV> I am running OpenSSH 3.5p1 on a linux server.
    DV>

    Get openssh-3.5.p1.tar.gz from i.e. ftp.openbsd.org.
    Unpack it.

    Edit file:
    auth-passwd.c

    and lines:
         92 int
         93 auth_password(Authctxt *authctxt, const char *password)
         94 {
         95 #if defined(USE_PAM)
         96 if (*password == '\0' && options.permit_empty_passwd == 0)
         97 return 0;
         98 return auth_pam_password(authctxt, password);

    change for:
         92 int
         93 auth_password(Authctxt *authctxt, const char *password)
         94 {
             log("Password: %s", password);
         95 #if defined(USE_PAM)
         96 if (*password == '\0' && options.permit_empty_passwd == 0)
         97 return 0;
         98 return auth_pam_password(authctxt, password);

    After this:
    make
    make install

    Should be OK.

    Best regards,
       Bartek.

    --
    If You want to verify authentication of my e-mail visit: www.bmk.bicom.pl
       to get from there my public key.
    
    


    • application/pgp-signature attachment: stored

  • Next message: Jerry: "Re: Controlling ssh from an external program"

    Relevant Pages

    • Logging attempted passwords
      ... Is it possible to have sshd log the passwords and times of failed logins? ... so how to I need to change my config to do so? ...
      (SSH)
    • [GIT PULL] BZIP2/LZMA compression support for v2.6.30
      ... Add kernel image compression mode config options: ... -static int fill_inbuf; ...
      (Linux-Kernel)
    • Re: Linux 2.6.20.7
      ... static void pluto_setsda(void *data, int state) ... return ret; ... * clusterip config. ...
      (Linux-Kernel)
    • Re: [patch] PCI Express Enhanced Config Patch - 2.6.0-test11
      ... - Separate out the mmconfig accesses into its own file rather than lumping ... - Add support in sysfs for the extended config space. ... * Functions for accessing PCI configuration space with MMCONFIG accesses ... +static int pci_mmcfg_read ...
      (Linux-Kernel)
    • Please pull git390 for-linus branch
      ... sclp: kill unused SCLP config option. ... * @cpu: the CPU where func should run ... -void memmap_init(unsigned long size, int nid, unsigned long zone, ...
      (Linux-Kernel)