Hello, I have problem with sshd on RedHat Enterprise 4 update 2 VPS. Every time when I try run /usr/sbin/sshd it just prints "Jan 26 14:34:14 rhel4 sshd[32341]: fatal: daemon() failed: No such device" into a log file and dies. If started in debug mode (/usr/sbin/sshd -d) in foregroung it runs fine and I can connect from outside. I would very appreciate any help. Shi
run strace on it like: strace -fF -o log /usr/sbin/sshd and find out ENODEV in log This will help to determine what's wrong.
Thanks for reply. There is no ENODEV in the strace log (attached) Shi
ls -al /dev/null seems that it is regular file instead of character device
That was it! I have no idea how it happened I have just installed the machine... (there was wrong urandom as well..) Thank you very much for your help. Shi
hmmmm. i just encountered this exact same problem with centos 4. ssh was working fine and then wasn't and i discovered that /dev/null had magically transmogrified into a plain plain text file. any ideas on how this happens?
I suppose this happens when udev package is updated by yum. AFAIK, it removes the whole /dev content... Probably, Kir should suggest how to avoid this.
by modifying /vz/template/centos/4/i386/config/yum.conf and setting "exclude" line to something like this: exclude=mkinit* up2date* firstboot rhn-applet lockdev udev linuxwacom minicom system-config-display system-config-soundcard system-config-network-tui gphoto2 linuxwacom gphoto2 kudzu desktop-printing hal-cups-utils kdegraphics system-config-packages system-config-network Aistis P.S. i put so much stuff in this line in order to successfully install X windows stuff inside VPS.