Running into this error message when trying to run a mosh server on macOS Catalina? The steps below should solve the problem which is most likely either a $PATH and/or firewall issues.
command not found: mosh-server Connection to X.X.X.X closed. /usr/local/bin/mosh: Did not find mosh server startup message. (Have you installed mosh on your server?)