sshd wont start

July 22, 2005 at 12:44:22
Specs: Slackware 10, AMD Duron 1.6GHz/640mb DD

Hey, My ssh daemon wont start. I have webmin and in the SSH Server I press start but nothing happens. I think I have OpenSSH_3.8.1

Don't know what it is. I activated telnet so that I can run the .rc.sshd restart but it says no process was killed. It means it never was started. What can I do?

thanks,


See More: sshd wont start

Report •


#1
July 22, 2005 at 15:02:59

What do your system logs say about it? Often times you can discover and fix problems by merely reading the logfiles. In answer to your question, there are several things which can cause a server daemon to fail on starup. Most often it's a configuration file issue though. I'm not sure where the config file for sshd is located on a Slackware system but I'd guess something like /etc/ssh/sshd_config or similar. Double-check your configuration and make sure it's got "sane" values for all the options, etc. Also, try launching the daemon from the command prompt. You should get some feedback to std out if problems are encountered during startup. Good luck!

k_Rob - kk7av



Report •

#2
July 22, 2005 at 17:10:06

This is the message, it doesnt say anything.

Jul 22 15:36:19 ozane sshd[1888]: fatal: daemon() failed: Success

The sshd_config seems fine.


Report •

#3
July 22, 2005 at 22:35:51

I tried to run the .rc.sshd again, and even the /usr/sbin/sshd, so I did strace /usr/sbin/sshd, these are the last few lines:

read(3, "-----BEGIN DSA PRIVATE KEY-----\n"..., 672) = 672
_llseek(3, 0, [0], SEEK_SET) = 0
fcntl64(3, F_GETFL) = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat64(3, {st_mode=S_IFREG|0600, st_size=672, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0
x40016000
_llseek(3, 0, [0], SEEK_CUR) = 0
read(3, "-----BEGIN DSA PRIVATE KEY-----\n"..., 4096) = 672
close(3) = 0
munmap(0x40016000, 4096) = 0
socket(PF_FILE, SOCK_STREAM, 0) = 3
connect(3, {sa_family=AF_FILE, path="/var/run/.nscd_socket"}, 110) = -1 ENOENT (
No such file or directory)
close(3) = 0
open("/etc/nsswitch.conf", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1081, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0
x40016000
read(3, "#\n# /etc/nsswitch.conf\n#\n# An ex"..., 4096) = 1081
read(3, "", 4096) = 0
close(3) = 0
munmap(0x40016000, 4096) = 0
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=40807, ...}) = 0
old_mmap(NULL, 40807, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40016000
close(3) = 0
open("/lib/libnss_compat.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000\26\0"..., 1024) = 10
24
fstat64(3, {st_mode=S_IFREG|0755, st_size=41912, ...}) = 0
old_mmap(NULL, 45004, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x402ba000
mprotect(0x402c4000, 4044, PROT_NONE) = 0
old_mmap(0x402c4000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x900
0) = 0x402c4000
close(3) = 0
munmap(0x40016000, 40807) = 0
uname({sys="Linux", node="ozane.net", ...}) = 0
open("/etc/passwd", O_RDONLY) = 3
fcntl64(3, F_GETFD) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=1276, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0
x40016000
_llseek(3, 0, [0], SEEK_CUR) = 0
read(3, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 1276
close(3) = 0
munmap(0x40016000, 4096) = 0
stat64("/var/empty", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
setgroups32(0, []) = 0
fork() = 7573
--- SIGCHLD (Child exited) @ 0 (0) ---
exit_group(0)

I dont know what strace is for, just read it over the web..


Report •

Related Solutions

#4
July 23, 2005 at 09:30:35

I tried running the command, and I could connect once through ssh, then it died.. Can anyone see the error?

:# /usr/sbin/sshd -Dde
debug1: sshd version OpenSSH_3.8.1p1
debug1: private host key: #0 type 0 RSA1
debug1: read PEM private key done: type RSA
debug1: private host key: #1 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: private host key: #2 type 2 DSA
socket: Address family not supported by protocol
debug1: Bind to port 22 on 0.0.0.0.
Server listening on 0.0.0.0 port 22.
Generating 768 bit RSA key.
RSA key generation complete.
debug1: Server will not fork when running in debugging mode.
Connection from 192.168.1.102 port 1370
debug1: Client protocol version 2.0; client software version PuTTY-Release-0.56
debug1: no match: PuTTY-Release-0.56
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-1.99-OpenSSH_3.8.1p1
debug1: permanently_set_uid: 33/33
debug1: list_hostkey_types: ssh-rsa,ssh-dss
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: client->server aes256-cbc hmac-sha1 none
debug1: kex: server->client aes256-cbc hmac-sha1 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST_OLD received
debug1: SSH2_MSG_KEX_DH_GEX_GROUP sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_INIT
debug1: SSH2_MSG_KEX_DH_GEX_REPLY sent
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: KEX done
debug1: userauth-request for user lucien service ssh-connection method none
debug1: attempt 0 failures 0
Failed none for lucien from 192.168.1.102 port 1370 ssh2
Failed none for lucien from 192.168.1.102 port 1370 ssh2
debug1: userauth-request for user lucien service ssh-connection method keyboard-interactive
debug1: attempt 1 failures 1
debug1: keyboard-interactive devs
debug1: auth2_challenge: user=lucien devs=
debug1: kbdint_alloc: devices ''
Failed keyboard-interactive for lucien from 192.168.1.102 port 1370 ssh2
debug1: userauth-request for user lucien service ssh-connection method password
debug1: attempt 2 failures 2
Accepted password for lucien from 192.168.1.102 port 1370 ssh2
debug1: monitor_child_preauth: lucien has been authenticated by privileged process
Accepted password for lucien from 192.168.1.102 port 1370 ssh2
debug1: permanently_set_uid: 1001/100
debug1: Entering interactive session for SSH2.
debug1: server_init_dispatch_20
debug1: server_input_channel_open: ctype session rchan 256 win 16384 max 16384
debug1: input_session_request
debug1: channel 0: new [server-session]
debug1: session_new: init
debug1: session_new: session 0
debug1: session_open: channel 0
debug1: session_open: session 0: link with channel 0
debug1: server_input_channel_open: confirm session
debug1: server_input_channel_req: channel 0 request pty-req reply 1
debug1: session_by_channel: session 0 channel 0
debug1: session_input_channel_req: session 0 req pty-req
debug1: Allocating pty.
debug1: session_new: init
debug1: session_new: session 0
debug1: session_pty_req: session 0 alloc /dev/pts/1
debug1: server_input_channel_req: channel 0 request shell reply 1
debug1: session_by_channel: session 0 channel 0
debug1: session_input_channel_req: session 0 req shell
debug1: Setting controlling tty using TIOCSCTTY.


Report •


Ask Question