Re: OpenSSH failed non-root login

From: Andy (unclemonty_at_gmail.com)
Date: 10/29/04


Date: 28 Oct 2004 15:03:09 -0700

unclemonty@gmail.com (Andy) wrote in message news:<8a7f2cff.0410200157.6b611ef6@posting.google.com>...
> sshd version OpenSSH_3.6.1p2
> Distro Fedora Core 1
> Kernel 2.4.22-1.2199.nptl
>
> Hope someone can help with this, I've come to a full stop. Frequently
> sshd is denying any non-root logins. To be precise, it just
> disconnects the connecting client after the password is provided.
> After restarting sshd it works fine and root login always works,
> regardless.
>
> Any help anyone can offer would be much appreciated, I've drawn a
> blank on this one so far.
>
<snip>
>

I solved it. It was pam_limits trying to nice sshd, which is just
never going to happen properly. Disabling pam_limits (/etc/pam.d/sshd
/etc/pam.d/system-auth) with sshd solved this.

HTH others.

Andy.



Relevant Pages

  • Re: tail -f over ssh leaves orphans behind
    ... >Why I think it is a kernel issue on the computer running the sshd program: ... >Sshd cannot avoid noticing that you have closed ssh on your end of the network ... sessions, and ssh does not use ptys for non-interactive sessions unless you ...
    (comp.unix.shell)
  • Re: upgrading 4.0 to stable
    ... If the new kernel is not able to boot - You can revert to the _OLD_ kernel and the _OLD_ world ... before 'make installworld' was done. ... because the new kernel must be able to run the sshd daemon, ...
    (freebsd-stable)
  • strange sshd failure at startup
    ... launch sshd at boot, while manually launching it is OK. ... The 3 line should be caused by the absence of ipv6 support in my kernel. ... The return value from sshd in init script is 11, ...
    (SSH)
  • buffer_get error on kernel 2.6.7
    ... I recently upgraded my system to fedora core 2 with a custom 2.6.7 ... kernel, and I had a hard time getting openssh 3.8.1p1 to work. ... but strace-ing sshd gave some insight. ...
    (SSH)
  • Re: OpenSSH failed non-root login
    ... >Distro Fedora Core 1 ... >sshd is denying any non-root logins. ... the "selinux=0" boot parameter? ... Good judgement comes with experience. ...
    (comp.security.ssh)