Debian – How to temporary change the keyboard layout on Debian? (no X)

consoledebiankeyboardkeyboard-layout

How can I quickly change my keyboard layout between US and German?

setxkbmap does not apply here, as I only have an SSH shell.

Persistent changes via

dpkg-reconfigure keyboard-configuration
dpkg-reconfigure console-data

are unwanted as well.

I suppose the solution is very simple, but I did not find it.

Best Answer

Try:

# loadkeys us

From a terminal, it does not make sense to run this over ssh as the keyboard you use over ssh is the local one and the ssh client sends the keys after they have already been interpreted according to your local keymap. And it won't even work if you try.

You can find all the available console keymaps in /usr/share/kbd/keymaps.

Related Question