OpenVZ Forum


Home » General » Support » rhel4.2 vps sshd daemon problem
rhel4.2 vps sshd daemon problem [message #1025] Thu, 26 January 2006 15:50 Go to next message
shishi is currently offline  shishi
Messages: 3
Registered: January 2006
Junior Member
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
Re: rhel4.2 vps sshd daemon problem [message #1026 is a reply to message #1025] Thu, 26 January 2006 15:59 Go to previous messageGo to next message
dim is currently offline  dim
Messages: 344
Registered: August 2005
Senior Member
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.


http://static.openvz.org/openvz_userbar_en.gif
Re: rhel4.2 vps sshd daemon problem [message #1027 is a reply to message #1026] Thu, 26 January 2006 16:22 Go to previous messageGo to next message
shishi is currently offline  shishi
Messages: 3
Registered: January 2006
Junior Member
Thanks for reply.

There is no ENODEV in the strace log (attached)

Shi
  • Attachment: sshd.log
    (Size: 16.51KB, Downloaded 347 times)
Re: rhel4.2 vps sshd daemon problem [message #1028 is a reply to message #1027] Thu, 26 January 2006 16:38 Go to previous messageGo to next message
dim is currently offline  dim
Messages: 344
Registered: August 2005
Senior Member
ls -al /dev/null
seems that it is regular file instead of character device


http://static.openvz.org/openvz_userbar_en.gif
Re: rhel4.2 vps sshd daemon problem [message #1029 is a reply to message #1028] Thu, 26 January 2006 17:00 Go to previous messageGo to next message
shishi is currently offline  shishi
Messages: 3
Registered: January 2006
Junior Member
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
Re: rhel4.2 vps sshd daemon problem [message #1742 is a reply to message #1029] Tue, 21 February 2006 21:30 Go to previous messageGo to next message
snowdeal is currently offline  snowdeal
Messages: 22
Registered: February 2006
Junior Member
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?

Re: rhel4.2 vps sshd daemon problem [message #1748 is a reply to message #1742] Wed, 22 February 2006 08:30 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

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.


http://static.openvz.org/userbars/openvz-developer.png
Re: rhel4.2 vps sshd daemon problem [message #1752 is a reply to message #1748] Wed, 22 February 2006 11:44 Go to previous message
aistis is currently offline  aistis
Messages: 77
Registered: September 2005
Location: Kaunas, Lithuania
Member

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.




Aistis Zenkevicius
http://static.openvz.org/userbars/openvz-user.png
Previous Topic: No module sata_sil
Next Topic: Complie kernel 022stab070.1 warnings.
Goto Forum:
  


Current Time: Mon Jul 14 20:11:58 GMT 2025

Total time taken to generate the page: 0.01668 seconds