Using Xnest to connect a shared desktop on Linux.
I ran into to following error while connection to the remote desktop
(EE) XKB: Couldn't open rules file /usr/X11/share/X11/xkb/rules/base
(EE) XKB: No components provided for device Virtual core keyboard
Couldn't get keyboard.
This made it impossible to use the keyboard as a input device as every letter represents a different character in the remote screen.
After some searching i found the solution in adding the “-kb” option to the command :