Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-19-2005, 07:52 AM
|
#1
|
LQ Newbie
Registered: Jan 2005
Location: Estonia
Distribution: Slackware 10.0
Posts: 8
Rep:
|
sshd: fatal: daemon() failed: No such device
Hi All,
A few days ago SSH just failed on me, after reboot.
Everytime I start sshd (/etc/rc.d/rc.sshd start), this appears in the syslog
file:
Jan 17 22:51:18 server sshd[11115]: fatal: daemon() failed: No such device
I can run ssh in debug mode (sshd -d) and it runs fine. It just when it tried to daemonise itself that it fails. I was configuring before samba and postfix. I did a strace on working and not workind sshd daemon and they looked exactly the same.
My linux distribution is Slackware 10.0
HELP
|
|
|
Click here to see the post LQ members have rated as the most helpful post in this thread.
|
01-21-2005, 01:28 AM
|
#2
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
Any idea what device the sshd daemon is trying to access. You could perhaps try:
grep -n '/dev/' /etc/rc.d/rc.sshd, but this would just help if the error occurred in the script and not the sshd binary.
Do you have either a /dev/random or /dev/psuedo device, as well as a /dev/null device.
Also, does your ssh daemon run in a jail? If so, there may be needed devices that need to be in jails dev directory.
Maybe someone would have more ideas. Perhaps grep'ing all of the ssh config files for the '/dev/' string may help.
|
|
|
02-07-2005, 06:54 AM
|
#3
|
Member
Registered: Jun 2002
Location: Berlin / Germay
Distribution: gentoo linux, ubuntu
Posts: 40
Rep:
|
check the /dev/null file!
I had exactly the same problem:
the solution is in the /dev/null file. it should now be a regular file, which is not recommended
some install script probably replaced the /dev/null with a file of the same name...
do the following:
remove /dev/null
and then: "mknod /dev/null c 1 3"
this will create the /dev/null and sshd should start as normal.
I also run slackware linux with the latest upgrade.
|
|
2 members found this post helpful.
|
02-15-2005, 03:20 AM
|
#4
|
LQ Newbie
Registered: Jan 2005
Location: Estonia
Distribution: Slackware 10.0
Posts: 8
Original Poster
Rep:
|
It works... Thank you.
|
|
|
11-09-2007, 04:46 PM
|
#5
|
LQ Newbie
Registered: Nov 2007
Posts: 5
Rep:
|
keex ! U ARE A GENIOUS HERO AND JUST SAVED MY LINUX WORLD! I was having the exactly same problem since desperate days of searching through log and config files!
BIG BIG THANK YOU!
I would have never figured that out on my own!
How did you figure it out?
sshd not starting, not even spitting an error...
must be the /dev/null file!
holy cow, lol... i am missing some links there
is there any way to make sshd run in verbose? or logging to some file?
ah okay i see
/usr/sbin/sshd -dddd
|
|
|
11-13-2007, 04:32 AM
|
#6
|
Member
Registered: Jun 2002
Location: Berlin / Germay
Distribution: gentoo linux, ubuntu
Posts: 40
Rep:
|
thanks!
glad I could help.
I found out after "strace"-ing. after the log files failed on me, I logged in as root, stopped sshd with /etc/init.d/sshd stop, just to make sure, and typed in the following command:
Code:
strace -f sshd 2>&1 | tee sshd.straceout
I looked at the output, searching for "daemon()" and found it, after or close to some special file opening syscalls. It had to do with /dev/null. So I checked that file for existance. it did exist, so looked at the file more closely and saw, it now was a huge and regular file.
Removing it and recreating it helped.
|
|
|
01-03-2008, 04:48 AM
|
#7
|
LQ Newbie
Registered: Jan 2008
Posts: 2
Rep:
|
thx keex!
u saved two lives for now :]
I had same problem after kernel compile.
No idea why it happend.
Anyway is ok now, THX again !!
/l.
|
|
|
06-29-2008, 05:16 PM
|
#8
|
GNU Contributor
Registered: Sep 2006
Location: Sta. Cruz, CA
Distribution: openSUSE
Posts: 62
Rep:
|
One more happy camper
A fresh install of SuSE 11.0 and /dev/null is a regular file for me, too.
I'd have never guessed it. THANK YOU!!!
|
|
|
09-02-2009, 04:42 AM
|
#9
|
LQ Newbie
Registered: Sep 2009
Location: Sweden, Jönköping
Posts: 1
Rep:
|
THANK YOU !!!
This saved my day !
|
|
|
10-10-2011, 04:38 AM
|
#10
|
LQ Newbie
Registered: Oct 2006
Posts: 4
Rep:
|
A couple years later, and here I am with Ubuntu Lucid Lynx, and thank you to keex for the answer
|
|
|
08-13-2013, 04:06 PM
|
#11
|
LQ Newbie
Registered: Aug 2013
Posts: 24
Rep:
|
Many thanks
I had this exact problem today on Gentoo. Seems it takes a long time for bug reports to filter through the system.
|
|
|
All times are GMT -5. The time now is 04:51 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|