Hello
Have you tried updating the shell access for the account after disabling demo mode via "WHM Home » Account Functions » Manage Shell Access"?
Note that shell access is intentionally disabled on demo accounts as a security measure. Typically, you should create a separate empty account for use as a demo and terminate it when it's no longer required.
Thank you.