Disable ssh access for root user

Did you restart the sshd server?

sudo systemctl restart sshd