Hi, I had the same problem after SSH'ing into recalbox and executing Moonlight.sh pair <hostname>
Turns out display forwarding wasn't working, so I changed the QT_QPA_PLATFORM setting.
Run the following command:
export QT_QPA_PLATFORM=offscreen
then run ./Moonlight.sh pair <hostname> as normal