Encountered during an OSSEC install - when pressing delete, ^H is printed instead.

Fix:

  1. Press CTRL-v and then hit backspace. You’ll see what code is sent as “erase”. ^H
  2. Type stty erase ^H to change the key setup.

That’s it.

Source: Macworld.