Startup scripts for Redhat are located in /etc/rc.c/init.d/, the file to start sshd
should be 'sshd'. If that file is not on your system, you could add andentry in
/etc/rc.d/rc.local. If that file exists on your system, then see if there are any
links to that file in /etc/rc.d/rc?.d, where ? is the runlevel number. The link would
be something like S23sshd, K23sshd (note: 23 could be any number). If there is a K,
that meeans to Kill the process in this runlevel. If there is an S, that means to
Start the process in this runlevel. The easy way to change these links so that sshd
(or any other daemon) start and stop when you want to is to use chkconfig (see man
page). But, if you want to set the daemon to start in runlevels 3 4 and 5, and stop
in 1 2 and 6, then run the following command.
" /sbin/chkconfig --level 345 sshd on "
Later,
Eric Harrison
On Fri, Jun 16, 2000 at 01:48:06PM -0400, Corey Mosher wrote:
> Hi,
> I am using redhat 6.2 and I'm not sure how to make
> sshd run automatically when I startup the machine.
> I checked the man pages and could figure it out.
> Any ideas?
>
> Corey Mosher
> Hub.Org Networking Services
> Wolfville, NS
> Canada
> [EMAIL PROTECTED]
>
>