Pressing backspace with root gives weired character in putty

putty

I am using putty to make ssh connection with my server.

I use up and down arrow button to go through history commands.

but now when i press backspace instead of deleting the character , some weired chacater appear like

service mysql stop


 service mysql stop^?^?^?

why is that , everything was ok before

Best Answer

You can reset the key while logged in by entering stty erase <then hit the backspace> That will set the backspace to whatever character you are sending as backspace for that terminal session. tylerl's response is a better long-term fix.