[Bug 1321] sshd connection refused

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Tue Jun 12 10:24:26 EST 2007


http://bugzilla.mindrot.org/show_bug.cgi?id=1321


Darren Tucker <dtucker at zip.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|ssh                         |sshd
                 CC|                            |dtucker at zip.com.au




--- Comment #1 from Darren Tucker <dtucker at zip.com.au>  2007-06-12 10:24:22 ---
That's pretty weird, for a few reasons:

1) the socketpair error should be non-fatal (ie sshd should fall back
to the non re-exec code in that case).

2) there's no documented reason that socketpair will set errno to
ECONNREFUSED (which corresponds to the error you describe).

3) Once you have a valid hostkey, regenerating it should have no impact
on whether or not sshd will start up.

4) Unless you have specifically configured sshd to run under inetd
(which is uncommon) then restarting inetd should have no impact on
sshd.

The only thing that I can think of (and it's a long shot) is that
you're reaching a limit of file descriptors, possibly a system-wide
limit.  You can try running "ulimit -h -n unlimited; ulimit -n
unlimited" (exact syntax will vary depending on your shell) before
restarting sshd.

You can also disable the re-exec in sshd ("/path/to/sshd -r") but if
you really are hitting a descriptor limit then that will probably not
solve the problem but rather change the symptoms.

BTW, which version of Solaris is this?  Do you have any
descriptor-related settings in /etc/system?


-- 
Configure bugmail: http://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list