On a particular CentOS 6 install, I must start SSH manually: # /etc/init.d/sshd start
I have tried to configure it to start automatically: # chkconfig --level 3 sshd on
However, it still must be manually started. I am not getting any errors. What might be preventing it from starting?
Thanks.
Am Donnerstag, den 01.09.2011, 17:09 +0300 schrieb Dotan Cohen:
However, it still must be manually started. I am not getting any errors. What might be preventing it from starting?
Maybe a specific ip in /etc/ssh/sshd_config ? And the Network is not up?
Have a look at /var/log/messages. Any hint there?
On Thu, Sep 1, 2011 at 17:21, Stefan Held obi@unixkiste.org wrote:
Maybe a specific ip in /etc/ssh/sshd_config ? And the Network is not up?
Have a look at /var/log/messages. Any hint there?
Turns out that this install boots to runlevel 5. I didn't install it, so I don't know why. But now that I've identified that, giving the proper command [1] fixed the issue. Thanks.
[1] chkconfig --level 5 sshd on
On Thu, Sep 1, 2011 at 17:21, Stefan Held obi@unixkiste.org wrote:
Maybe a specific ip in /etc/ssh/sshd_config ? And the Network is not up?
Have a look at /var/log/messages. Any hint there?
Turns out that this install boots to runlevel 5. I didn't install it, so I don't know why. But now that I've identified that, giving the proper command [1] fixed the issue. Thanks.
[1] chkconfig --level 5 sshd on
Or, to simplify things and enable it for all applicable multi-user runlevels, just run:
chkconfig sshd on
On Thu, Sep 1, 2011 at 17:55, Mike Burger mburger@bubbanfriends.org wrote:
Or, to simplify things and enable it for all applicable multi-user runlevels, just run:
chkconfig sshd on
I usually don't like leaving daemons running when they don't need to be. However, in this instance it would have helped!
Le 01/09/2011 16:24, Dotan Cohen a écrit :
Turns out that this install boots to runlevel 5. I didn't install it, so I don't know why. But now that I've identified that, giving the proper command [1] fixed the issue. Thanks. [1] chkconfig --level 5 sshd on
I verified on CentOS 4 and 5, and SL6 servers, and they are all running on runlevel 5. I think it is the default runlevel for graphics interface (Gnome, KDE...).
Alain
On Thu, Sep 1, 2011 at 17:57, Alain Péan alain.pean@lpp.polytechnique.fr wrote:
I verified on CentOS 4 and 5, and SL6 servers, and they are all running on runlevel 5. I think it is the default runlevel for graphics interface (Gnome, KDE...).
Alain
How silly of me! This server is in the guy's house, and obviously if SSH is not running then he's logging in locally... I should have suspected a graphical login. That's my lesson learned for today! Thanks!
From: Dotan Cohen dotancohen@gmail.com
On a particular CentOS 6 install, I must start SSH manually: # /etc/init.d/sshd start I have tried to configure it to start automatically: # chkconfig --level 3 sshd on
Maybe try: chkconfig --del sshd chkconfig --add sshd
Do you see the symlinks? # ll /etc/rc?.d/*sshd lrwxrwxrwx. 1 root root 14 Sep 1 15:06 /etc/rc0.d/K25sshd -> ../init.d/sshd lrwxrwxrwx. 1 root root 14 Sep 1 15:06 /etc/rc1.d/K25sshd -> ../init.d/sshd lrwxrwxrwx. 1 root root 14 Sep 1 15:06 /etc/rc2.d/S55sshd -> ../init.d/sshd lrwxrwxrwx. 1 root root 14 Sep 1 15:06 /etc/rc3.d/S55sshd -> ../init.d/sshd lrwxrwxrwx. 1 root root 14 Sep 1 15:06 /etc/rc4.d/S55sshd -> ../init.d/sshd lrwxrwxrwx. 1 root root 14 Sep 1 15:06 /etc/rc5.d/S55sshd -> ../init.d/sshd lrwxrwxrwx. 1 root root 14 Sep 1 15:06 /etc/rc6.d/K25sshd -> ../init.d/sshd
JD
On Thu, Sep 1, 2011 at 17:35, John Doe jdmls@yahoo.com wrote:
Maybe try: chkconfig --del sshd chkconfig --add sshd
Do you see the symlinks? # ll /etc/rc?.d/*sshd lrwxrwxrwx. 1 root root 14 Sep 1 15:06 /etc/rc0.d/K25sshd -> ../init.d/sshd lrwxrwxrwx. 1 root root 14 Sep 1 15:06 /etc/rc1.d/K25sshd -> ../init.d/sshd lrwxrwxrwx. 1 root root 14 Sep 1 15:06 /etc/rc2.d/S55sshd -> ../init.d/sshd lrwxrwxrwx. 1 root root 14 Sep 1 15:06 /etc/rc3.d/S55sshd -> ../init.d/sshd lrwxrwxrwx. 1 root root 14 Sep 1 15:06 /etc/rc4.d/S55sshd -> ../init.d/sshd lrwxrwxrwx. 1 root root 14 Sep 1 15:06 /etc/rc5.d/S55sshd -> ../init.d/sshd lrwxrwxrwx. 1 root root 14 Sep 1 15:06 /etc/rc6.d/K25sshd -> ../init.d/sshd
Thanks. I didn't look to see if the symlinks were created, I should have done that.