sshd2 not starting at boot

sshd2 not starting at boot

Post by John Hunte » Tue, 02 Oct 2001 00:26:36



I am having trouble getting sshd2 to start at boot in run level 3.

I installed ssh-3.01 to /usr/local and put the supplied sshd2 shell
script in /etc/init.d (RHL 7.0) and made it executable.  I put a
symlink in /etc/rc3.d named S98sshd2 which points to the shell script.

I think the shell script and permissions are ok because I can start
and stop the daemon with the symlink once the machine is booted up, eg

root# /etc/rc3.d/S98sshd2 restart

works as expected.

Nonetheless, the daemon does not start at boot.

The only thing I can think is that there is a problem starting daemons
in /usr/local, but I have no idea.


-rwxr-xr-x    1 root     root         1438 Sep 19 13:36 /etc/init.d/sshd2*

lrwxrwxrwx    1 root     root           15 Sep 18 09:59 /etc/rc3.d/S98sshd2 -> ../init.d/sshd2*

There are no messages matching 'ssh' in /var/log/messages from the
boot sequence.

Any ideas?
Thanks,
John Hunter

 
 
 

sshd2 not starting at boot

Post by Christian Merril » Tue, 02 Oct 2001 22:29:43



> I am having trouble getting sshd2 to start at boot in run level 3.

> I installed ssh-3.01 to /usr/local and put the supplied sshd2 shell
> script in /etc/init.d (RHL 7.0) and made it executable.  I put a
> symlink in /etc/rc3.d named S98sshd2 which points to the shell script.

> I think the shell script and permissions are ok because I can start
> and stop the daemon with the symlink once the machine is booted up, eg

> root# /etc/rc3.d/S98sshd2 restart

> works as expected.

> Nonetheless, the daemon does not start at boot.

> The only thing I can think is that there is a problem starting daemons
> in /usr/local, but I have no idea.


> -rwxr-xr-x    1 root     root         1438 Sep 19 13:36 /etc/init.d/sshd2*

> lrwxrwxrwx    1 root     root           15 Sep 18 09:59

/etc/rc3.d/S98sshd2 -> ../init.d/sshd2*

Quote:

> There are no messages matching 'ssh' in /var/log/messages from the
> boot sequence.

> Any ideas?
> Thanks,
> John Hunter

Link it to run level 5 (rc5.d)...should work.

Christian

 
 
 

sshd2 not starting at boot

Post by John Hunte » Wed, 03 Oct 2001 00:13:03


    >>

    Christian> Link it to run level 5 (rc5.d)...should work.

Ok, thanks, I'll try that.  But it seems to me that ssh services
should be available at run level 3, for those times when you go down
to a lower level for admin stuff.  I can always start up the services
manually in 3, but this doesn't help many of the users who may be
logging in remotely.

Presuming it works in 5, any thoughts on why it isn't working in 3?

Thanks,
JDH

 
 
 

sshd2 not starting at boot

Post by Christian Merril » Wed, 03 Oct 2001 00:27:55




writes:

>     Christian> Link it to run level 5 (rc5.d)...should work.

> Ok, thanks, I'll try that.  But it seems to me that ssh services
> should be available at run level 3, for those times when you go down
> to a lower level for admin stuff.  I can always start up the services
> manually in 3, but this doesn't help many of the users who may be
> logging in remotely.

> Presuming it works in 5, any thoughts on why it isn't working in 3?

> Thanks,
> JDH

forgive me in advance if any of this is off, I'm still nursing a birthday
hangover.  My assumption would be that you are booting into runlevel 5,
which is why it's not working just by having it in 3...what follows is that
if you boot your system to runlevel 3 ssh should start up...generally with
services like ssh I link the startups to 3 and 5.

Christian

 
 
 

sshd2 not starting at boot

Post by John Hunte » Wed, 03 Oct 2001 03:05:56


    Christian> forgive me in advance if any of this is off, I'm still
    Christian> nursing a birthday hangover.  My assumption would be
    Christian> that you are booting into runlevel 5, which is why it's
    Christian> not working just by having it in 3...what follows is
    Christian> that if you boot your system to runlevel 3 ssh should
    Christian> start up...generally with services like ssh I link the
    Christian> startups to 3 and 5.

Oh, I see.  I assumed that anything in run level 3 would be started on
the way to 5.  If my default runlevel is 5, is it then correct that
none of the scripts in rc3.d are run?

Congrats on the birthday.

JDH

 
 
 

sshd2 not starting at boot

Post by David Efflan » Wed, 03 Oct 2001 11:29:14




>    Christian> forgive me in advance if any of this is off, I'm still
>    Christian> nursing a birthday hangover.  My assumption would be
>    Christian> that you are booting into runlevel 5, which is why it's
>    Christian> not working just by having it in 3...what follows is
>    Christian> that if you boot your system to runlevel 3 ssh should
>    Christian> start up...generally with services like ssh I link the
>    Christian> startups to 3 and 5.

> Oh, I see.  I assumed that anything in run level 3 would be started on
> the way to 5.  If my default runlevel is 5, is it then correct that
> none of the scripts in rc3.d are run?

Right, anything you want to run in a particular runlevel has to be symlink
to that rc#.d dir.  So if you want it in runlevels 3 and 5 you would need
it in both rc3.d and rc5.d.

--
David Efflandt - All spam is ignored - http://www.de-srv.com/
http://www.autox.chicago.il.us/  http://www.berniesfloral.net/
http://cgi-help.virtualave.net/  http://hammer.prohosting.com/~cgi-wiz/

 
 
 

1. sshd2 not starting at boot

I am having trouble getting sshd2 to start at boot in run level 3.

I installed ssh-3.01 to /usr/local and put the supplied sshd2 shell
script in /etc/init.d (RHL 7.0) and made it executable.  I put a
symlink in /etc/rc3.d named S98sshd2 which points to the shell script.

I think the shell script and permissions are ok because I can start
and stop the daemon with the symlink once the machine is booted up, eg

root# /etc/rc3.d/S98sshd2 restart

works as expected.

Nonetheless, the daemon does not start at boot.

The only thing I can think is that there is a problem starting daemons
in /usr/local, but I have no idea.


-rwxr-xr-x    1 root     root         1438 Sep 19 13:36 /etc/init.d/sshd2*

lrwxrwxrwx    1 root     root           15 Sep 18 09:59 /etc/rc3.d/S98sshd2 -> ../init.d/sshd2*

There are no messages matching 'ssh' in /var/log/messages from the
boot sequence.

Any ideas?
Thanks,
John Hunter

2. ide cdrom question...

3. how to start sshd2 at boot time for SunOS 5.7

4. ftpd-term ftpd with term mods

5. start sshd2 during boot?

6. S3 Trio 64V2 775 Card problems - Help ?

7. eth0 does not start at boot, help!

8. where can I learn to configure apache??

9. dtsrc subsystem not started on boot

10. rh6.2:mountd and nfsd daemons do not start at boot

11. Interface eth0 does not start at boot

12. How can named be started automatically at boot time not by manual?

13. xntpd not starting at boot