I don’t recommend to sftp as root and I think this have been disabled on yunohost 12, not sure. But it was possible for root user to sftp using a password defined in the webadmin > tools >YunoHost settings >root password.
There is also a solution here Autoriser ROOT en SFTP? - #12 by kanhu
But it is not recommended.
What are you trying to achieve?