arcnmx / mosh-server-upnp

use mosh across a NAT
MIT License
18 stars 5 forks source link

"Entity not found" error on Mac OS X #5

Open svenk opened 4 years ago

svenk commented 4 years ago

When I build and use mosh on a Mac OS X (as mosh server/ssh target machine), I get this error message:

client$ mosh --server=/path/to/mosh-server-wrapper target-mac-machine
mosh-server-upnp error: entity not found
Connection to target-mac-machine closed.

I don't see a proper way to debug that.

I built the recent master (main.rs from July 2018), built the code with cargo build.

svenk commented 4 years ago

Okay, I could fix this error in favour of another one. It was searching for the mosh-server binary which I gave him with an enviroment variable, i.e. wrote a wrapper script

me@mac-os-x-server$ cat ~/bin/mosh-server-wrapper 
#!/bin/bash
export LC_ALL=en_US.UTF-8  
export LANG=en_US.UTF-8
export MOSH_SERVER="$HOME/bin/mosh-server"
~/bin/mosh-server-upnp

Now I get another error message:

on-the-client% % mosh --server=bin/mosh-server-wrapper  mac-os-x-host-name                                                                                 :(

mosh-server (mosh 1.3.2) [build mosh-1.3.2]
Copyright 2012 Keith Winstein <mosh-devel@mit.edu>
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

[mosh-server detached, pid = 22487]
mosh-server-upnp error: Request error
Connection to mac-os-x-hostname closed.
/usr/bin/mosh: Did not find mosh server startup message. (Have you installed mosh on your server?)