I think most consoles that cloud providers offer are attached via virtual serial consoles (ttys) and not via SSH. So you can disable passwords for SSH but still use them via the cloud provider remote console.
At least for KVM based virtual servers that I have this is the case.
At least for KVM based virtual servers that I have this is the case.