-
Notifications
You must be signed in to change notification settings - Fork 738
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation about --bind-server=any #1279
Comments
As you say, both Regarding the wiki, you're welcome to make any changes you want :) Perhaps you could add some notes into the "Debugging-and-Theory" section about checking what IP the server binds to. And maybe the "Usage" page could have something that describes your case. |
Yes, I'm aware they're in manual. But, you know, the manual isn't the first page you get by googling. In fact, I didn't know there was a manual until I typed I'll update wiki when I get back to home. |
I looked at wiki but found that I couldn't edit the page. Here's what could go into the wiki: If you can connect to mosh server manually, but not by mosh command, it might be mosh-server binding to wrong address. This commonly happens when you have some sort of proxy between your client and SSH server. In this case, you can use |
I have my server SSH behind a proxy.
haproxy
would listen on TCP 443 and disambiguate HTTPS and SSH, and relay SSH connections to local SSH server listening on port 10443. I've done this way because my school hates port 22, and port 443 is almost never blocked.However, when I set it up this way, mosh-server mistakenly identifies 127.0.0.1 as the client IP and binds to localhost. I had to use
mosh myhost --bind-server=any
ormosh-server ... -i 0.0.0.0
to circumvent it. I'd prefer both to be documented because some terminal apps on smartphones require configuringmosh-server
invocation directly.It would be nice if documentation could be improved to mention situations like this. I know
man mosh-server
has description about-i
flag, but I had hard time figuring out what was wrong. Wiki mentions firewall issue, but nothing about binding.The text was updated successfully, but these errors were encountered: