John Chambers
December 2nd, 2008, 03:10 AM
My ubuntu (Hardy Heron) system's ssh, scp and rsync commands work fine for the initial uid that I installed. But I've added several other uids, and incoming ssh/scp/rsync connections fail for all of them. They fail the same way. For example, ssh asks for the password three times, and then says "Permission denied (publickey,password)." Meanwhile, the tail end of /var/log/auth.log says:
Dec 1 20:55:48 minya sshd[3436]: Failed none for invalid user lwv from 192.168.1.101 port 51824 ssh2
Dec 1 20:55:50 minya sshd[3436]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=ap101 user=lwvFailed password for invalid user
Dec 1 20:55:52 minya sshd[3436]: Failed password for invalid user lwv from 192.168.1.101 port 51824 ssh2
Dec 1 20:56:03 minya last message repeated 2 times
Dec 1 20:56:03 minya sshd[3436]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=ap101 user=lwv
So it seems that sshd is calling the PAM library, which is rejecting the login. So far, I haven't found any clues. Googling for "Failed password for invalid user" gets lots of hits, but they all seem to be talking about defending against attackers doing thousands of logins. In this case, I'm trying to break into my own machine from another of my own machines (or my wife's). The effect has been to block using the new machine as a server, since the valid users can't get in.
Anyone know what I might have done wrong, or how I could diagnose and fix this problem?
Dec 1 20:55:48 minya sshd[3436]: Failed none for invalid user lwv from 192.168.1.101 port 51824 ssh2
Dec 1 20:55:50 minya sshd[3436]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=ap101 user=lwvFailed password for invalid user
Dec 1 20:55:52 minya sshd[3436]: Failed password for invalid user lwv from 192.168.1.101 port 51824 ssh2
Dec 1 20:56:03 minya last message repeated 2 times
Dec 1 20:56:03 minya sshd[3436]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=ap101 user=lwv
So it seems that sshd is calling the PAM library, which is rejecting the login. So far, I haven't found any clues. Googling for "Failed password for invalid user" gets lots of hits, but they all seem to be talking about defending against attackers doing thousands of logins. In this case, I'm trying to break into my own machine from another of my own machines (or my wife's). The effect has been to block using the new machine as a server, since the valid users can't get in.
Anyone know what I might have done wrong, or how I could diagnose and fix this problem?