Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Thanks for your answer paul, honestly I dot get your term *stays*, my exact problem afetr I set the redhat 9 and finished the sshd_conf configuration the last step I tried is putting check on ssh services on the Start>System Settings>Security Level using GUI. What if I build again another Redhat 9 Unit with only using command line and no GUI environment?
I've also tried unchecking agauin the ssh services in Start>System Settings>Security Level and input:
chkconfig --add sshd
chkconfig --level 35 sshd on
You're mixing apples and oranges and pears and kumquats here. Let's break it down:
1. ORIGINAL QUESTION:
Q: How can I automatically enable SSHD at boot without using the GUI?
A: Several alternatives.
One of the best (depending on your distro) is "chkconfig".
RH is one of the distros that use "chkconfig" (I didn't know you were using RH until your second post).
2. Q: Why do you want to know? What was the "context" for asking your question?
A: I thought maybe the GUI wasn't working for you (hence my question "does sshd *stay* set?")
I now understand this was just a hypothetical question (in case someday you didn't happen to have a GUI handy).
3. Q: I ran "chkconfig", and sshd stayed off! Why?
A: Because the GUI does TWO things: a) it enables (or disables) the service, ... AND ... b) it turns it on (or off).
"chkconfig" just enables or disables the service - it doesn't turn it on or off.
You can run "/etc/rc.d/init.d/sshd start" (or the equivalent for your distro) to turn the service on from the command line.
Valid rc.d arguments include "start", "stop", and "restart" (among others).
'Hope that helps .. PSM
I really believe that, for the most part, the "context" question is asked in, is every bit as important as the question itself.
Same problem again I really can't solve it I am a Linux beginner
I want to automatically start SSH services in my redhat 9. In startup screen it appears to be started and I also reconfigured sshd_config and /etc/rc.d/init.d/sshd restart. My RH9 is currently in runlevel 5 and my remedy is to go in Start>System Settings>Security Level and check SSH service.
What if I reformat it and run in a complete CLI only? is there any command to alter the Start>System Settings>Security Level and check SSH procedure?
I doubt very many people will remember the menu structure of RH9. It is ancient and you should upgrade it if you will connect it to a network.
There are posts on this site you can search for on how to make ssh more secure. Read the /etc/ssh/sshd_config configuration file. It is well commented. You should 1) disable root logins; 2) use public key authentication; 3)configure the AllowUsers entry for your username, and if the ssh port is exposed to the internet (directly or indirectly via another host) 4)change the default port that ssh uses.
I echo chrism01's statements on this - I see a lot of questions especially in the Newbie forum regarding Red Hat 9. To be honest this is an ancient distro and is a security nightmare waiting to happen.
Please at all costs if possible; consider RHEL 5, CentOS 5 or Fedora 12 (or 13 which is out soon) - these are active, supported distro's so that if you have problems there are specialists you can turn too.