Report this

What is the reason for this report?

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

Posted on February 2, 2014

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.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Since no one answered with the solution here it is: Apparently when you create new user using useradd and you don’t pass -s /bin/bash new user has some weird shell… So to fix it just run: chsh -s /bin/bash username (change shell command). If you can’t type while in “weird shell” run bash first.

I can’t type the “@” sign in console and de facto I can’t login and I can’t do anything. <br>Copy and paste is disabled or doesn’t work, too. <br> <br>I just signed up and pointed my domain to DigitalOcean but the start is a nightmare till now with that big issue. <br> <br>I have the same VPS - Ubuntu 12.04.

Solved by switching my keyboard to the American one.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.