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!
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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:
Quote:
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
PS:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.