Skip to content
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

Open
jsonmona opened this issue Jul 11, 2023 · 3 comments
Open

Documentation about --bind-server=any #1279

jsonmona opened this issue Jul 11, 2023 · 3 comments

Comments

@jsonmona
Copy link

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 or mosh-server ... -i 0.0.0.0 to circumvent it. I'd prefer both to be documented because some terminal apps on smartphones require configuring mosh-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.

@eminence
Copy link
Member

As you say, both --bind-server=any and -i are already documented in the manual pages. Is there something additional you'd like to see there?

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.

@jsonmona
Copy link
Author

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 man mosh-server!

I'll update wiki when I get back to home.

@jsonmona
Copy link
Author

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 mosh --bind-server=any ... or mosh-server ... -i 0.0.0.0 to force mosh-server to accept connection from any address.

@jsonmona jsonmona reopened this Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants