LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   ssh startup at boot (http://www.linuxquestions.org/questions/linux-server-73/ssh-startup-at-boot-600220/)

ilm0nty 11-16-2007 03:46 PM

ssh startup at boot
 
Hello

I'm trying to have ssh daemon to run at boot time
How should I do it? I tried to put a shell script in /etc/rc5.d/ with "sshd start" inside, but it doesn't work
I'm not good at this sort of things, but this shouldn't be that hard ...
I'm running DSL (damn small linux), sshd is in /usr/sbin/ (I tried also to put "/usr/sbin/sshd start", but it doesn't work ...).
If I start sshd within the control panel, it just works fine, but I have to start it each time by hand.

Thanks for reading
Nicola

KrahnacK 11-16-2007 05:07 PM

Hi,

don't know DSL in particular, but you should have access, as root to a command like "rc-update" (in gentoo), or "update-rc.d" (in debian) which permits to manage which services to start at which runlevel...

the exact command to run sshd from command line is "/etc/init.d/sshd start".
again, i don't know DSL specific commands, but these should be merely the same for each distro.

ilm0nty 11-17-2007 04:13 AM

THAT WORKED!
thanks !!!
nicola

danie1 08-26-2008 10:33 AM

I'm new to Lunix (but not to other unixes). Looks like there is an /etc/rc.d/rc.local, where you can put your own startup stuff. I tried adding /etc/init.d/sshd start, but haven't tried booting it yet.

KrahnacK 08-27-2008 02:21 AM

if you installed sshd from your package manager (which i recommand), you should just have to run a command like "rc-update" (in gentoo), or "update-rc.d" (in debian), which will install properly all the needed files to the /etc/rc.d/* concerned dirs.

By the way, what's your distro ?


All times are GMT -5. The time now is 08:38 AM.