It improves and adds new features to ssh:
- stay connected, even change IP address
- don't have to be root to run it
- use udp
- more reliable than ssh with slow or unstable connection
1- download and install it
~$ wget https://mosh.mit.edu/mosh-1.2.4.tar.gz
~$ tar xvf mosh-1.2.4.tar.gz
~$ cd mosh-1.2.4
~$ ./configure
~$ make
~$ sudo make install
2- on server ip, 10.0.3.122
~$ mosh-server
MOSH CONNECT 60001 GgvAopbU/svHBMltMm2SwA
mosh-server (mosh 1.2.4)
Copyright 2012 Keith Winstein <mosh-devel@mit.edu>
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
[mosh-server detached, pid = 1228]
3- on client, use the key from server "GgvAopbU/svHBMltMm2SwA" and port to connect
~$ MOSH_KEY=GgvAopbU/svHBMltMm2SwA mosh-client 10.0.3.122 60001
then it will drop shell of the remote server
-- below the image of mosh-server running with key
No comments:
Post a Comment