setreuid failed (was: SSH daemon doesn't accept incoming connections)



There is a description of the problem I have stumbled across a while ago:
http://lists.debian.org/debian-user/2007/05/msg02019.html
Basically, I wasn't able to establish the SSH connection even to localhost.

I've finally figured out what had caused the problem. I ran sshd in
debug mode and noticed
"setreuid 100: Resource temporarily unavailable". The sshd user id is
100 in debian.
It turned out that the setreuid(2) syscall has been failing for some reason.

I wrote a simple test program (http://epsmu.com/~kuvkir/setreuid.c) to
check that
and it appeared that setreuid is failing for this particular uid (100).
I'm not sure if it is a debian or an openssh specific issue,
but rather glibc (2.3.6-ds1-13) or maybe kernel (2.6.18-4-powerpc
debian) related
thing.

For now I has changed the sshd uid to another value and restared the ssh daemon
and it works fine now.

Thanks,
Kirill



Relevant Pages

  • sshd
    ... I have a question concerning sshd. ... I'm unable to connect from outside to my Debian box. ... # To enable empty passwords, ... # Kerberos options ...
    (Debian-User)
  • Re: PROOF OF LIFE AFTER DEATH.!!!!!!!!!
    ... The Bible teaches both a New Birth and a Second Death, and a framework in ... The default choice is Second Death, ... Birth is a viable option for those who want it. ... intrinsic absurdity which inheres therein. ...
    (sci.physics)
  • Re: Connection refused
    ... I am trying to set up a SSH connection from a win98 ... > What I really want is, ¿how can I get sshd or PuTTY to give me more ... > ¿Is there a way to test the configuration from the Linux box? ... user@linux_box" to get some more detailed output. ...
    (comp.security.ssh)
  • setreuid failed (was: SSH daemon doesnt accept incoming connections)
    ... I wasn't able to establish the SSH connection even to localhost. ... The sshd user id is ... I'm not sure if it is a debian or an openssh specific issue, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: cvs over ssh with non standard port
    ... >> I am trying to get cvs to access the repository through a ssh connection ... >> when the sshd is listening on a non standard port. ...
    (Debian-User)