mobile-shell / mosh

Mobile Shell
https://mosh.org
GNU General Public License v3.0
12.59k stars 729 forks source link

Introduce configuration file #1314

Closed tyalie closed 6 months ago

tyalie commented 6 months ago

Hi I noticed during usage and especially exposing multiple mosh servers behind an IPv4 NAT, that it is nearly impossible to configure the port range that will be chosen without client configuration. Especially the way mosh-server expects its arguments (with mosh-server new -p ...), prevents one from writing a small wrapper script that would handle that.

As a solution I would suggest a very simple configuration file that can be parsed, allowing system administrators to configure utilized port range without a user requiring to understand the limitations of the endpoint.

achernya commented 6 months ago

Duplicate of #431

tyalie commented 6 months ago

But what I'm proposing here is the other way around. That would be a configuration file on the host, instead of the client.