service command not working for starting sshd
I recently installed Red Hat 8 on one machine and got sshd running, but now I'm trying to start it on another machine that I just installed the same OS on. Here's what I think I used last time--at least it's what I wrote down!
service sshd start
However, it tells me that the service command can't be found. I typed
and it returned a ton of results, but the last one was /sbin/service, so I changed directories to /sbin and typed that line above, but it still said the service command couldn't be found! I typed
ls -alF service
and service has an asterisk by it: service*
What's the problem? Last time I just typed that first line, and then to make sure it would start up after a reboot I typed this:
chkconfig --level 35 sshd on
What am I doing wrong? Thanks!