Mosh (mobile shell) – это альтернатива SSH с открытым исходным кодом, которая обеспечивает стабильность и надежность в беспроводных сетевых соединениях.
С помощью функции повторного установления соединения удаленное соединение автоматически восстанавливается после прерывания интернет-соединения.
Кроме того, он обеспечивает интеллектуальное локальное эхо и редактирование строк пользовательских нажатий клавиш.
На самом деле очень просто установить Mosh на Ubuntu 17.04, давайте посмотрим.
Установка Mosh
Чтобы установить Mosh, очень важно добавить необходимый репозиторий в свой компьютер, поэтому убедитесь, что вы выполнили следующую команду, которая добавляет его в вашу систему:
# add-apt-repository ppa:keithw/mosh Mosh is a remote terminal application that supports intermittent connectivity, allows roaming, and provides speculative local echo and line editing of user keystrokes. More info: https://launchpad.net/~keithw/+archive/ubuntu/mosh Press [ENTER] to continue or ctrl-c to cancel adding it gpg: keybox '/tmp/tmpk3bk72_h/pubring.gpg' created gpg: /tmp/tmpk3bk72_h/trustdb.gpg: trustdb created gpg: key 3EB9326A7BF6DFCD: public key "Launchpad PPA for Keith Winstein" imported gpg: Total number processed: 1 gpg: imported: 1 OK
После добавления репозитория вы должны обновить его, используя следующую команду:
# apt-get update Hit:1 http://us.archive.ubuntu.com/ubuntu zesty InRelease Get:2 http://ppa.launchpad.net/keithw/mosh/ubuntu zesty InRelease [5.4 kB] Hit:3 http://ppa.launchpad.net/ubuntuhandbook1/claws-mail/ubuntu zesty InRelease Get:4 http://security.ubuntu.com/ubuntu zesty-security InRelease [89.2 kB] Get:5 http://ppa.launchpad.net/keithw/mosh/ubuntu zesty/main i386 Packages [604 B] Get:6 http://us.archive.ubuntu.com/ubuntu zesty-updates InRelease [89.2 kB] Get:7 http://ppa.launchpad.net/keithw/mosh/ubuntu zesty/main amd64 Packages [608 B] Get:8 http://ppa.launchpad.net/keithw/mosh/ubuntu zesty/main Translation-en [348 B] Get:9 http://us.archive.ubuntu.com/ubuntu zesty-backports InRelease [89.2 kB] Fetched 284 kB in 2s (107 kB/s) Reading package lists... Done
И затем вы можете приступить к установке Mosh, используя следующую команду:
# apt-get install mosh -y Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: mosh 0 upgraded, 1 newly installed, 0 to remove and 130 not upgraded. Need to get 0 B/205 kB of archives. After this operation, 843 kB of additional disk space will be used. Selecting previously unselected package mosh. (Reading database ... 205290 files and directories currently installed.) Preparing to unpack .../mosh_1.3.2+1279-0ppa~ubuntu17.04.1_amd64.deb ... Unpacking mosh (1.3.2+1279-0ppa~ubuntu17.04.1) ... Processing triggers for ufw (0.35-4) ... Processing triggers for man-db (2.7.6.1-2) ... Setting up mosh (1.3.2+1279-0ppa~ubuntu17.04.1) ...
# mosh -version mosh 1.3.2 [build mosh 1.3.2] 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.