On my Rpi I want to disable USB keyboard and mouse input completely. The RPi should respond only to ssh, not on local USB HID inputs. (other USB devices should still be allowed)

The following failed:

$ modprobe -r usbhid
FATAL: Module usbhid is builtin.

How can I disable the USB HID module, so that keyboard and mouse are no longer recognized?

  • You can't disable it that way if the module is compiled into the kernel. You might be able to do something with "udev rules"... – goldilocks Feb 18 '13 at 18:23
  • 2
    You can disable local login for users - see linuxquestions.org/questions/linux-general-1/… . Do you have a reason to keep HIDs connected in the first place? – Lord Loh. Feb 19 '13 at 22:32
  • 1
    udev no longer supports disabling devices by their ID or type. I also want to disable input devices on RPi. RPi works as unattended card and USB-drive reader, so USB socket is freely available to users. I want them to use mass storage devices only. As for now, I find no way of blocking USB input devices. Any hints? – user8491 Jul 15 '13 at 15:21

Browse other questions tagged or ask your own question.