I had your same issue. To solve it you have to ssh to the instance as root user:
ssh root@0.tcp.ngrok.io -p
And then when it prompts you for a password you have to paste the password that's randomly generated at the beginning of the script (found in the password variable in your script)