OpenVZ Forum - RDF feed
type: channel
items: rhel4.2 vps sshd daemon problem
items: Re: rhel4.2 vps sshd daemon problem

rhel4.2 vps sshd daemon problem
type: item
description: 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
creator: shishi
date: 2006-01-26T15:50:04-00:00

Re: rhel4.2 vps sshd daemon problem
type: item
description: 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.
creator: dim
date: 2006-01-26T15:59:44-00:00

Re: rhel4.2 vps sshd daemon problem
type: item
description: Thanks for reply. There is no ENODEV in the strace log (attached) Shi
creator: shishi
date: 2006-01-26T16:22:52-00:00

Re: rhel4.2 vps sshd daemon problem
type: item
description: ls -al /dev/null seems that it is regular file instead of character device
creator: dim
date: 2006-01-26T16:38:58-00:00

Re: rhel4.2 vps sshd daemon problem
type: item
description: 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
creator: shishi
date: 2006-01-26T17:00:30-00:00

Re: rhel4.2 vps sshd daemon problem
type: item
description: 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?
creator: snowdeal
date: 2006-02-21T21:30:53-00:00

Re: rhel4.2 vps sshd daemon problem
type: item
description: 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.
creator: dev
date: 2006-02-22T08:30:21-00:00

Re: rhel4.2 vps sshd daemon problem
type: item
description: 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.
creator: aistis
date: 2006-02-22T11:44:17-00:00