We are using x2go to connect to a CentOS 6 virtual machine. It worked fine, but then the computer was moved to a new server, and the IP address was changed. Since then it is still possible to connect with x2go to the virtual machine, but the keyboard is completely dead. The XCFE desktop appears and the mouse works, but when you open a terminal and hit the keys on your keyboard on your client nothing happens. Normal ssh to the same machine and user works fine.
We just discovered that the keyboards work if you login as root instead, so it appears to be a permission problem of some sort. I suspect that the IP address change make a difference somehow.
I have tried deleting everything in ~/x2go* and /tmp/.x2go-username. It didn't help.
I would appreciate any suggestions on how to investigate and solve this problem.
Edit: I don't think it is a keyboard mapping problem. The keys are not wrong, they are simply not detected at all. I tried manually setting the keymap with "setxkbmap us" but it doesn't make any difference. It seems that something is stopping keyboard events from reaching the desktop on the server, while leaving other events and messages alone (since mouse and GUI work).