Skip to content

Commit

Permalink
Clarify that -p does not affect SSH port
Browse files Browse the repository at this point in the history
  • Loading branch information
ashmew2 authored and cgull committed Nov 19, 2016
1 parent 0c2088d commit 3ba5a29
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
----------------------
Expand Down
2 changes: 1 addition & 1 deletion macosx/readme.rtf
Original file line number Diff line number Diff line change
Expand Up @@ -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\
Expand Down
5 changes: 2 additions & 3 deletions man/mosh.1
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
1 change: 1 addition & 0 deletions scripts/mosh.pl
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ BEGIN
--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")
Expand Down

0 comments on commit 3ba5a29

Please sign in to comment.