LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-18-2006, 12:35 PM   #1
bugg_tb
LQ Newbie
 
Registered: May 2004
Distribution: suse
Posts: 21

Rep: Reputation: 15
SSHD starts and dies without any error messages


Hi Guys

Im running voyage linux on a little embedded soekris computer and am having trouble getting SSHD to start. If I start /etc/init.d/ssh start then it goes through the motions of starting but nothing shows up with ps and I cant login. If I type sshd then the same happens, but if I run it without it forking to the background then it seems to work fine.

Any suggestions?

heres my sshd_config

# What ports, IPs and protocols we listen for
Port 22
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
ListenAddress 0.0.0.0
Protocol 2
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
#Privilege Separation is turned on for security
UsePrivilegeSeparation yes

# Lifetime and size of ephemeral version 1 server key
KeyRegenerationInterval 3600
ServerKeyBits 768

# Logging
SyslogFacility AUTH
LogLevel INFO

# Authentication:
LoginGraceTime 600
PermitRootLogin yes
StrictModes yes

RSAAuthentication yes
PubkeyAuthentication yes
#AuthorizedKeysFile %h/.ssh/authorized_keys

# Don't read the user's ~/.rhosts and ~/.shosts files
IgnoreRhosts yes
# For this to work you will also need host keys in /etc/ssh_known_hosts
RhostsRSAAuthentication no
# similar for protocol version 2
HostbasedAuthentication no
# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
#IgnoreUserKnownHosts yes

# To enable empty passwords, change to yes (NOT RECOMMENDED)
PermitEmptyPasswords no

# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes

# Change to yes to enable tunnelled clear text passwords
PasswordAuthentication no


# To change Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#AFSTokenPassing no
#KerberosTicketCleanup no

# Kerberos TGT Passing does only work with the AFS kaserver
#KerberosTgtPassing yes

X11Forwarding no
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
KeepAlive yes
#UseLogin no

#MaxStartups 10:30:60
#Banner /etc/issue.net

Subsystem sftp /usr/lib/sftp-server

UsePAM yes
 
Old 04-18-2006, 07:14 PM   #2
mrjamin
LQ Newbie
 
Registered: Sep 2003
Location: UK
Distribution: FC7
Posts: 27

Rep: Reputation: 15
Where are you looking for errors?

On my system, they're in dmesg or /var/log/messages

Its highly unlikely that a fundamental software daemon will die without logging anything, and a segfault is quite unlikely, unless you have a dodgy compile?
 
Old 04-18-2006, 07:19 PM   #3
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Quote:
Originally Posted by mrjamin
Where are you looking for errors?

On my system, they're in dmesg or /var/log/messages

Its highly unlikely that a fundamental software daemon will die without logging anything, and a segfault is quite unlikely, unless you have a dodgy compile?
Yep, I'm with you. Look in /var/log/messages for the sshd messages when you start it and it crashes.

Peace...
 
Old 04-19-2006, 06:22 AM   #4
bugg_tb
LQ Newbie
 
Registered: May 2004
Distribution: suse
Posts: 21

Original Poster
Rep: Reputation: 15
sorted it.


Because its an embedded system running on 64mb Flash it doesn't do any logging which is a pain, but I managed to trace the problem down to a malformed /dev/null. I thought i'd post the answer here as I've only found 1 other post on the net similar so if ever anyone gets stuck.....

Tom
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenSSH starts and dies TimP AIX 3 10-27-2006 08:01 PM
Fedora Core 5 - Network Dies When KDE Starts gmcmaster Linux - Networking 4 04-07-2006 03:38 PM
bridge starts on boot but dies on logoff? doublez Linux - Networking 0 09-23-2005 11:35 AM
WPC11 wireless starts OK, dies, needs manual kickstart azl Linux - Hardware 0 06-07-2004 02:25 PM
sshd starts slooooowly Tinkster Slackware 5 04-13-2003 09:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration