Highlighted
  • 856 Views

Disable root login via SSH

Jump to solution

I am doing some traing for my RHCSA through the Red Hat Online Labs.  There is a step where it asks you to disable root login via SSH on the server which, to my knowledge, is done by editing "/etc/ssh/sshd_config" and changing "PermitRootLogin yes" to "PermitRootLogin no" then restarting the sshd service.
When I run the lab grade script I keep getting this step wrong, even though I am unable to login as root via SSH from the desktop vm.

Has anyone else had this issue? Or am I missing a step?

Labels (4)
0 Kudos
1 Solution

Accepted Solutions
Flight Engineer Flight Engineer
Flight Engineer
  • 853 Views

Re: Disable root login via SSH

Jump to solution
Please, check that no additional space or other additional codes in directive line. That is not controlled by grade script.

View solution in original post

0 Kudos
Reply
Loading...
2 Replies
Flight Engineer Flight Engineer
Flight Engineer
  • 854 Views

Re: Disable root login via SSH

Jump to solution
Please, check that no additional space or other additional codes in directive line. That is not controlled by grade script.

View solution in original post

0 Kudos
Reply
Loading...
Highlighted
  • 849 Views

Re: Disable root login via SSH

Jump to solution

That worked! Thank you very much!

0 Kudos
Reply
Loading...
Join the discussion
You must log in to join this conversation.