{{tag>Brouillon SSH tmux}} # Mosh pour remplacer SSH Site du projet https://mosh.mit.edu/ Autre : http://www.slashroot.in/mosh-better-alternative-ssh Voir aussi * http://blog.cloudpassage.com/2012/09/25/mitigating-security-risks-mosh/ * https://github.com/marklee77/mosh-proxy ~~~bash mosh --ssh='ssh -p 7000' user@serveur ~~~ Sur le serveur ~~~bash mosh-server ~~~ ~~~ MOSH CONNECT 60001 ewiNFI9EvmGMaQP3DzNKuw ~~~ Sur le client ~~~bash MOSH_KEY=ewiNFI9EvmGMaQP3DzNKuw mosh-client 151.80.136.92 60001 ~~~ ## Session utilisateur (sans privilèges root) Téléchargement du binaire `mosh-server` en session utilisateur (si pas de privilèges root) ~~~bash mkdir -p ~/tmp/mosh cd ~/tmp/mosh apt-get download mosh ar x mosh_1.2.4a-1+b2_amd64.deb tar xvf data.tar.xz ~~~ On test que l’exécutable se lance bien sans erreurs ~~~bash ~/tmp/mosh/usr/bin/mosh-server ~~~ A présent nous utilisons `mosh` (qui utilisera SSH pour l’authentification) ~~~bash mosh --ssh='ssh -p 2222' --server ~/tmp/mosh/usr/bin/mosh-server jean@192.168.2.101 -- tmux at -d ~~~