Won't Run As Daemon

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hi Ssh Folks --

I'm having a problem that may or may not be related to OpenSSH.  When
I try to run sshd as a normal daemon, it doesn't stay up.  I have
Debian, and the start-stop-daemon command successfully forks off sshd,
but sshd promptly dies without a peep.  When I run sshd by hand in
debug mode (not as a daemon), it does not die and works fine, which
makes it difficult to figure out why it's dying as a daemon!  I've
been banging my head against this problem for weeks, so any help that
can be offered would be greatly appreciated.  Thanks!


Re: Won't Run As Daemon

Quoted text here. Click to load it

Try setting "LogLevel VERBOSE" in sshd_config and checking your syslog.

Failing that, put LogLevel back and try running "strace -f /path/to/sshd"
(as root, obviously).  It'll show the syscalls sshd makes, the -f will
make it follow forks.  It can take a little decoding, but it should
provide some information about what the daemon is doing.

Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.

Site Timeline