1

How to disable SSH login for the root user

How to disable the SSH login for the root user . how should restrict the login credentials for the root user

SSH Add a comment
ethan
asked Jun 18 2019
edited Jun 18 2019

Answer

1

Use the following command for the disable the SSH login for the root user

#vim /etc/ssh/sshd_config
#PermitRootLogin yes

Change And remove the #

PermitRootLogin no
Add a comment
linuxhelp
asked Jun 18 2019
Post your Answer