mosh的优点前端
1. 会话的中断不会致使当前正在前端执行的命令中断,至关于你全部的操做都是在screen命令中同样在后台执行;
2. 会话在中断事后,不会马上退出,而是启用一个计时器,当网络恢复后会自动从新链接,同时会延续以前的会话,不会从新开启一个。bash
Remote terminal application that allows roaming, supportsintermittent connectivity, and provides intelligent local echo and line editing of user keystrokes.服务器
Mosh is a replacement for SSH. It's more robust and responsive, especially over Wi-Fi, cellular, and long-distance links.网络
Mosh is free software, available for GNU/Linux, FreeBSD, Solaris, Mac OS X, and Android.app
在全部主流的类 Unix 版本中可用,如 GNU/Linux, FreeBSD, Solaris, Mac OS X, and Android。 须要在客户端和远程服务器端都安装moshide
MAC客户端安装moshcode
#brew install mosh
远程服务器安装moship
#yum install mosh
客户端链接远程服务器ci
#mosh root@ip