Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   CentOS (http://www.linux-archive.org/centos/)
-   -   Cannot start SSH at boot (http://www.linux-archive.org/centos/570930-cannot-start-ssh-boot.html)

Dotan Cohen 09-01-2011 02:09 PM

Cannot start SSH at boot
 
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.

--
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Stefan Held 09-01-2011 02:21 PM

Cannot start SSH at boot
 
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?

--

Stefan Held VI has only 2 Modes:
obi unixkiste org The first one is for beeping all the time,
FreeNode: foo_bar the second destroys the text.
---------------------------------------------------------------------------
perl -e'map{print pack c,($|++?1:13)+ord,select$,,$,,$,,$|}split//,ESEL.$/'
---------------------------------------------------------------------------

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Dotan Cohen 09-01-2011 02:24 PM

Cannot start SSH at boot
 
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

--
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

John Doe 09-01-2011 02:35 PM

Cannot start SSH at boot
 
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
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

"Mike Burger" 09-01-2011 02:55 PM

Cannot start SSH at boot
 
> 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


--
Mike Burger
http://www.bubbanfriends.org

Visit the Dog Pound II BBS
telnet://dogpound2.citadel.org or http://dogpound2.citadel.org

To be notified of updates to the web site, visit:

https://www.bubbanfriends.org/mailman/listinfo/site-update

or send a blank email message to:

site-update-subscribe@bubbanfriends.org
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Alain Péan 09-01-2011 02:57 PM

Cannot start SSH at boot
 
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

--
================================================== ========
Alain Péan - LPP/CNRS
Administrateur Système/Réseau
Laboratoire de Physique des Plasmas - UMR 7648
Observatoire de Saint-Maur
4, av de Neptune, Bat. A
94100 Saint-Maur des Fossés
Tel : 01-45-11-42-39 - Fax : 01-48-89-44-33
================================================== ========

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Dotan Cohen 09-01-2011 06:35 PM

Cannot start SSH at boot
 
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.


--
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Dotan Cohen 09-01-2011 06:36 PM

Cannot start SSH at boot
 
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!

--
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Dotan Cohen 09-01-2011 06:38 PM

Cannot start SSH at boot
 
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!


--
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


All times are GMT. The time now is 09:48 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.