by ppietro » 26 Feb 2013, 00:22
Sorry - I'm kinda pressed for time, but I wanted to respond with something. If this isn't detailed enough, hopefully someone else can step in.
If you installed sshd via YUM (or you manually downloaded and installed the Yellow Dog sshd RPMs), this is a quick and easy way to get it running.
NOTE: These instructions are only valid for YDL. They might work on other systems - but there's enough variance in Linux that I can't guarantee it. YDL is a recompile of Red Hat Enterprise Linux, via the CentOS re-compile, so this should work on Red Hat or CentOS systems.
Log into your system as root user. (i.e. At the login screen, use root as the username and the system password you created during installation as the password.)
Open up a terminal window, and type the following:
chkconfig sshd on
service sshd start
That should do it.
How this works: If you install the RPM/YUM version of sshd, it also installs a special Red Hat service start script. chkconfig can use a small text block inside the script to set sshd to run automatically at boot time. (Type a chkconfig --list sshd to see what run-levels it assigns.)
Next, we use Red Hat's built in serivce manager to start it. You can check the status using the same command: service sshd status
Good luck!
Cheers,
Paul
P.S. NOTE: If you built sshd from scratch, this may or may not work. It all depends if the sshd build installed the Red Hat service start script. Some source code includes it, some doesn't.