Software: x2vnc works like a dream to control a windows PC from an X session - it's transparent. x2x does it for, erm, X to X

The advantage here is that you can cut'n'paste between PCs.
Sometimes though you just need the hardware (my work PC throws up a fairly hard firewall when it runs a VPN connection) so I just bought a kvm for exactly this purpose. I got a Linksys one in the end - I went through 2 or 3 Belkin ones which were all flakey after a few minutes to a few hours use.
Check the plug types:
Are you using a USB keyboard and/or mouse?
Or is it a small round plug for them both? That's 'PS/2'
Or does the keyboard have a large round plug? That's 'AT'
You can convert between most of them but it's easier to get it right.
£12 inc postage...
HTH
PLAGUE WARNING: Don't buy
one of theseDavid