Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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 want sshd to start at startup... i know init would probably be the best way to start it.. im just woundering how i would go about configuring init to do so.. a link to a doc on howto would be awsome!!
also telnet net is running... i dont use it but should i run it... questions questions hehe..its not a busy server at all.. but for flexibility should i run it?
There should be a file /etc/init.d/ssh or /etc/init.d/sshd as part of the distributed ssh package.
To automaticly start it, but a symlink to /etc/rcX.d, where X is one of 1,2,3,4,5,6 or S. Meanings of these numbers (and S) depends from distribution to other, but usually 1 is for single user mode, 2-5 normal user (IIRC RH uses 5 by default; see your /etc/inittab), 6 for reboot and S for halt.
For telnet; if the computer is not behind a firewall, you shouldn't use it, but for a trusted network, telnet is good fallback system in case others don't let you in. (and for windows hosts with crippled (base) installation not having ssh clients).
ok, in debian init.d directory is located in /etc, but I think that is functionally the same you found. If there is no readymade initialization script for sshd, you can make one yoursef (you can take example from other files in that directory).
Alternatively (probably easier) you can just put the necessary commands ('/usr/sbin/sshd') to start sshd to the end of your rc.local file (located in /etc/, /etc/rc.d or /etc/init.d or somewhere similar places).
At least the later versions of Red Hat has a utility called ntsysv to control wich services that start at certain run levels.
Run ntsysv from console and check if you can check the sshd for start at the current run level.