I constantly use keyboard sharing software like
synergy2,
teleport,
x2vnc,
x2x, etc... I've settled on synergy since it's relatively platform independent. I use the command line program rather than
synergyKM, just because I find it far more reliable. I also tunnel through ssh and found the certificate stuff in synergyKM to be less than ideal.
In any case, I wrote a small shell script which fires up the synergy server on the machine with the physical keyboard attached, then reaches out via ssh to the client machine, copying the synergyc client binary, establishes a reverse tunnel back to the synergy server on my laptop, launches the client in the background on the remote machine and connecting to the tunnel, then finally detaches the ssh session. When I close my lid and walk away at the end of the day, the tunnel and synergy processes gracefully clean up after themselves.
I find this setup ideal, because whenever I bring my portable machine into the office in the morning, I just run
kvmc ford
and the script takes care of everything for me.
The scripts are located in the
northstarlabs repository. As usual, most of their usefulness is derived from password-less ssh authentication using public keys and ssh-agent.