Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.