On Sat, Jul 28, 2001 at 09:02:09PM -0400, Benoit Langevin wrote:
> I had the same problem ( running redhat 6.1)
>
> I had it work when I used the "./configure --with-pam", then make and make
> install.
>
> You will also need to copy contrib/redhar/sshd.pam to /etc/pam.d/sshd
Almost! But not quite. I'm using pam now and cranked up debugging.
[root@nano openssh-2.9p2]# ./sshd -ddd -f ../etc/sshd_config
<snip>
debug1: userauth-request for user sshtest service ssh-connection method none
debug1: attempt 0 failures 0
debug2: input_userauth_request: setting up authctxt for sshtest
debug1: Starting up PAM with username "sshtest"
debug3: Trying to reverse map address 192.168.1.16.
debug1: PAM setting rhost to "nano.foo.net"
debug2: input_userauth_request: try method none
Failed none for sshtest from 192.168.1.16 port 1051 ssh2
debug1: userauth-request for user sshtest service ssh-connection method password
debug1: attempt 1 failures 1
debug2: input_userauth_request: try method password
debug1: PAM Password authentication for "sshtest" failed[7]: Authentication failure
Failed password for sshtest from 192.168.1.16 port 1051 ssh2
Mike