Unable to ssh login as root user on Ubuntu Linux

so i did the above steps and i did all this using the debian user in the BeagleBone Black. I have a windows 10 OS and am using Putty to connect via ssh.

I changed the #PermitRootLogin prohibit-password to PermitRootLogin yes (didn’t add # behind permit).
but still am unable to login as root user

Did you restart the sshd service?

Yes i did. I used sudo reboot and then logged in using putty and still nothing

Are you able su as root?

Also make sure that your root user have password set.