使用mosh

旧街凉风 提交于 2020-04-07 19:33:36

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

 

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!