View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 11-16-2007, 03:46 PM   #1
LQ Newbie
Registered: Oct 2005
Posts: 14

Rep: Reputation: 0
ssh startup at boot


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
Old 11-16-2007, 05:07 PM   #2
Registered: Nov 2007
Location: /dev/volcano
Posts: 70

Rep: Reputation: 15

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.
Old 11-17-2007, 04:13 AM   #3
LQ Newbie
Registered: Oct 2005
Posts: 14

Original Poster
Rep: Reputation: 0
thanks !!!
Old 08-26-2008, 10:33 AM   #4
LQ Newbie
Registered: Aug 2008
Posts: 10

Rep: Reputation: 0
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.
Old 08-27-2008, 02:21 AM   #5
Registered: Nov 2007
Location: /dev/volcano
Posts: 70

Rep: Reputation: 15
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 ?


boot, daemon, runlevel, ssh, startup

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh guard doesn't startup Tux-Slack Linux - Security 6 05-19-2007 01:42 PM
ssh rc startup hunterk41 Linux - Security 1 02-18-2005 10:58 PM
ssh still in my startup e1000 VectorLinux 1 12-26-2003 02:23 PM
SSH startup washakie Linux - Security 1 10-08-2003 06:12 PM
SSH Startup jimval7 Linux - General 1 02-25-2002 11:56 AM

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration