I was making a script to change the password of login to one of my VPS machine, and it's something like the following, and unfortunatelly the ^M character (not the combination of '^' and 'M') was added mistakenly into the script. And now I couldn't login to the machine anymore. I found out the character when editing the script using vi. Now I am wondering what should I input when being asked for the password. Any help would be really appreciated!
ssh email@example.com "passwd <<EOF testpass^M testpass^M EOF";