If, on the other hand, you were to us the mosh -p option like so mosh -p 211 is absolutely not going to work, because that would be telling mosh to try to connect over the port reserved for SSH, which will fail, and furthermore, it will default to trying to establish the connection via the standard SSH port 22, which will also fail. So in other words, what you want and what I gave you above basically says: "Use port 211 to establish a connection via SSH and then, once it's all set up, use a default port for mosh in the 60000-61000 range" (assuming you have a default setup). What does that mean that the -p option has no effect on the port used by SSH? That refers to the mosh option, not the SSH option. Please note that the -p option has no effect on the port used by SSH. By default, mosh uses a port number between 6000, but the user can select a particular port with the -p option. To function, Mosh requires UDP datagrams to be passed between client and server. If the client changes IP addresses, the server will begin sending to the client on the new IP address within a few seconds. The SSH connection is then shut down and the terminal session begins over UDP. The server process listens on a high UDP port and sends its port number and an AES-128 secret key back to the client over SSH. SSH may prompt the user for a password or use public-key authentication to log in.įrom this point, mosh runs the mosh-server process (as the user) on the server machine. The mosh program will SSH to to establish the connection. See the "How it works" section of the README.md on github Here's the straight-forward answer from the mosh documentation mosh -ssh="ssh -p 211" this to work, you still need to get mosh set up including having mosh on the target host and listening on a port (by default in the 60000 to 61000 range) that is cleared for a UDP connection in the target host firewall settings.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |