Google Cloud Servers: Unity says “Magic number is wrong: 542”

This apparently is a mono bug, and seems to happen if you try to invoke a Linux headless build on a Google Cloud VPS instance. From what I understand it’s something to do with the terminal emulator that the Google Cloud Console uses. If you used SSH to log into the server and started that…