Incorrect characters in console when pressing keys(up,down,left,right)

February 2, 2014 3.8k views
Incorrect characters, when pressing keys(up,down,left,right) on the console Sample: From the root with keyup root@pc~# previous command From user with keyup $ ^[[A From user with keys(up,down,left,right) $ ^[[A^[[B^[[D^[[C How to fix this? VPS - Ubintu 12.04 server.
4 Answers
I can't type the "@" sign in console and de facto I can't login and I can't do anything.
Copy and paste is disabled or doesn't work, too.

I just signed up and pointed my domain to DigitalOcean but the start is a nightmare till now with that big issue.

I have the same VPS - Ubuntu 12.04.
Solved by switching my keyboard to the American one.
Yes this is a problem, download a SSH client like PuTTY for Windows or iTerm for Mac.

I have (almost) the same issue, but switching keyboard didn't seem to help me. I'm using a spanish keyboard in any case, and the same problem happens when connecting through SSH from Linux or from Mac.

The particular problem seems only with non-root users in Ubuntu 12.04.3 x64. We have another couple of droplets using Fedora, and this problem doesn't occur.

In Ubuntu, root console is just fine, but non-root user's console seems misconfigured or something:

- Up/Down/Left/Right keys just print out: ^[[A^[[B^[[D^[[C
- There seems to be no command history (or maybe it's because pressing Up key just doesn't seem to work)
- Console prefix should look like: [@ ]$, but it only shows a "$" sign. It shows no username, no path, nothing.
- TAB to complete commands/paths/file names, doesn't work either.
- Aliases like ll (for ls -l) are not configured by default.

Do yo have any ideas of what the problem could be?
I created the users using: useradd -m -c "User Name" someuser

Thank you very much in advance!
Have another answer? Share your knowledge.