Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 root@xxx.xxx.xxx.xxx "passwd <<EOF
share|improve this question

migrated from stackoverflow.com Dec 9 '12 at 12:36

This question came from our site for professional and enthusiast programmers.

Command+V comes up as ^M for me. –  Qoop Dec 9 '12 at 3:44
^M is the control character for newline. What should work is hitting ctrl-v then return (then return again to actually send the password). –  Brian Roach Dec 9 '12 at 3:46
On my machine, Command+V is paste. Tried with ctrl-v, not work neither. :( –  Tee Dec 9 '12 at 7:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.