[NBLUG/talk] Re: can't start ssh

Steve Smith sjs at sonic.net
Wed Oct 6 21:40:52 PDT 2004



On Tue, 5 Oct 2004 talk-request at nblug.org wrote:
> From: E Frank Ball <frankb at frankb.us>
> Try executing /usr/sbin/sshd instead of using the init.d
> script and see what happens.  If that doesn't work try
> "strace /usr/sbin/sshd".
>
> --
>
>    E Frank Ball                frankb at frankb.us
Thanks.  I did that.  The problem seems to be when the
daemon forks.  I ran 'strace -ff -f -o /tmp/t /usr/sbin/sshd'
and the output looks like:
setsid()                                = 6731
chdir("/")                              = 0
open("/dev/null", O_RDWR)               = 3
fstat64(3, {st_mode=S_IFREG|0666, st_size=4, ...}) = 0
close(3)                                = 0
time([1097121018])                      = 1097121018
open("/etc/localtime", O_RDONLY)        = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1017, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000
read(3, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\0\0\0\4\0"..., 4096) = 1017
close(3)                                = 0
munmap(0x40018000, 4096)                = 0
rt_sigaction(SIGPIPE, {0x402ddf60, [], 0}, {SIG_DFL}, 8) = 0
socket(PF_UNIX, SOCK_DGRAM, 0)          = 3
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
connect(3, {sa_family=AF_UNIX, path="/dev/log"}, 16) = 0
send(3, "<34>Oct  6 20:50:18 sshd[6731]: "..., 63, 0) = 63
rt_sigaction(SIGPIPE, {SIG_DFL}, NULL, 8) = 0
close(3)                                = 0
exit_group(255)                         = ?

I don't see any errors here.  Am I missing something?

ssh -D and ssh -d both work, but then neither forks a
daemon.

On Wed, 6 Oct 2004 talk-request at nblug.org wrote:

> Strange....  what value does your server have for ServerKeyBits in
> sshd_config?
>
> I believe the default is 768 bits.
It isn't defined for this release or for the other release I have
on this system.  I upgraded to SuSE 9.1 from SuSE 8.2
>
> We should assume this is a BSD initialization scheme - Debian or Slack
> system.  Was it a .deb upgrade?
>
according to the debug output this is
debug1: sshd version OpenSSH_3.8p1
Generating 768 bit RSA key.
RSA key generation complete.

Also I've tried to do a reinstall of the sshd and things still don't work.

Thanks!
Steve S.





More information about the talk mailing list