From 3ba5a2975857b04346e509aa880b349a838a9f2b Mon Sep 17 00:00:00 2001 From: Ashish Gupta Date: Wed, 27 Apr 2016 21:44:28 +0000 Subject: [PATCH] Clarify that -p does not affect SSH port --- README.md | 1 + macosx/readme.rtf | 2 +- man/mosh.1 | 5 ++--- scripts/mosh.pl | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0c79463..50388bc 100644 --- a/README.md +++ b/README.md @@ -106,6 +106,7 @@ How it works To function, Mosh requires UDP datagrams to be passed between client and server. By default, `mosh` uses a port number between 60000 and 61000, but the user can select a particular port with the -p option. + Please note that the -p option has no effect on the port used by SSH. Advice to distributors ---------------------- diff --git a/macosx/readme.rtf b/macosx/readme.rtf index 92841aa..dc53e86 100644 --- a/macosx/readme.rtf +++ b/macosx/readme.rtf @@ -92,7 +92,7 @@ From this point, If the client changes IP addresses, the server will begin sending to the client on the new IP address within a few seconds.\ To function, Mosh requires UDP datagrams to be passed between client and server. By default, \f1\fs24 \cb3 mosh -\f0\fs28 \cb1 uses a port number between 60000 and 61000, but the user can select a particular port with the -p option.\ +\f0\fs28 \cb1 uses a port number between 60000 and 61000, but the user can select a particular port with the -p option. Please note that the -p option has no effect on the port used by SSH.\ \pard\pardeftab720\sa200 \b\fs48 \cf0 More info\ diff --git a/man/mosh.1 b/man/mosh.1 index d163206..a71c100 100644 --- a/man/mosh.1 +++ b/man/mosh.1 @@ -191,9 +191,8 @@ for example, if this is the only port that is forwarded through a firewall to the server. With \fB\-p 0\fP, the server will let the operating system pick an available UDP port. Otherwise, \fBmosh\fP will choose a port between 60000 and -61000. - - +61000. Please note that this option does not affect the server-side +port used by SSH. .TP .B \-\-bind\-server={ssh|any|\fIIP\fP} diff --git a/scripts/mosh.pl b/scripts/mosh.pl index 9d84a51..25745be 100755 --- a/scripts/mosh.pl +++ b/scripts/mosh.pl @@ -105,6 +105,7 @@ qq{Usage: $0 [options] [--] [user@]host [command...] --family=prefer-inet6 use all network types, but try IPv6 first -p PORT[:PORT2] --port=PORT[:PORT2] server-side UDP port or range + (No effect on server-side SSH port) --bind-server={ssh|any|IP} ask the server to reply from an IP address (default: "ssh")