rkvm is a
software KVM (keyboard, video and mouse) switch - minus the video. From
the README:

rkvm is a tool for sharing keyboard and mouse across multiple Linux
machines. It is based on a client/server architecture, where server is
the machine controlling mouse and keyboard and relays events (mouse
move, key presses, ...) to clients.

In this...