Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I think what you want is the following:

sudo vi /etc/ssh/sshd_conf

Change the line that reads PermitRootLogin yes to PermitRootLogin no and then restart ssh:

sudo systemctl restart sshd.service

If you don't have sudo access, su to root and run the commands without sudo in front of each.