urxvt backspace and other control keys not working on remote host in ssh

Revision history
Tags: ssh urxvt rxvt-unicode terminfo

As I was connecting via SSH to a remote host running Arch ARM the terminal was apparently interpreting all control keys as whitespace characters. As usual, the Arch Linux wiki knew exactly what was going on.

First check your current terminal

$ echo $TERM

Then copy the correct terminfo file to the remote host

$ ssh remotehost mkdir -p .terminfo/r/
$ scp /usr/share/terminfo/r/rxvt-unicode-256color remotehost:.terminfo/r/

Then connect again to the host and enjoy a (hopefully) working terminal again.


If you have any comments or feedback, please send me an e-mail. (stig at stigok dotcom).

Did you find any typos, incorrect information, or have something to add? Then please propose a change to this post.

Creative Commons License This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.