Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSH Swap ctrl and caps

Tags:

linux

ssh

debian

On my machine I have ctrl and caps swapped however I frequently use other machines where I can not remap caps and ctrl. Is it possible to handle remapping on my vps.

I have tried various methods with no luck, dumpkeys/loadkeys don't work because it is not a real terminal, editing /etc/default/keyboard also does not work.

like image 334
Hamza Yerlikaya Avatar asked Dec 06 '25 05:12

Hamza Yerlikaya


1 Answers

I doubt you'll find any way to swap these two keys on the remote peer, since the terminal program on the local end will send a H rather than caps-lock+h packet to the remote peer when caps lock is on and h is pressed.

like image 58
sarnold Avatar answered Dec 08 '25 20:12

sarnold