mosh的优势
1. 会话的中断不会导致当前正在前端执行的命令中断,相当于你所有的操作都是在screen命令中一样在后台执行;
2. 会话在中断过后,不会立刻退出,而是启用一个计时器,当网络恢复后会自动重新连接,同时会延续之前的会话,不会重新开启一个。
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.
在所有主流的类 Unix 版本中可用,如 GNU/Linux, FreeBSD, Solaris, Mac OS X, and Android。 需要在客户端和远程服务器端都安装mosh
MAC客户端安装mosh
#brew install mosh
远程服务器安装mosh
#yum install mosh
客户端连接远程服务器
#mosh root@ip
来源:oschina
链接:https://my.oschina.net/u/2318885/blog/716764