Disable Direct Root Logins 1

Disable Direct Root Logins

3. In nano type Ctrl+w to search for “protocol 2” and hit Enter
4. Uncomment and change it to look like Protocol 2
5.find the line
PermitRootLogin yes

6. Uncomment it (if it’s commented) and make it look like PermitRootLogin no
7. Save the file and quit ( Ctrl+x -> y -> Enter)
8. Restart SSH by typing

Now whoever log into the system must use “su” to escalate privileges.

thnx for reading,
@specktator[/crayon]

1 thought on “Disable Direct Root Logins”

Comment:

This site uses Akismet to reduce spam. Learn how your comment data is processed.