mosh安装与使用

Mosh(mobile shell)是一款基于UDP的远程终端软件,包含客户端和服务器两部分,用于代替SSH。因为Mosh基于UDP,所以它可以提供不间断的连接,非常适用于在网络状况不好或时延较大的网络中进行远程终端访问。比如,在GPRS或3G移动网络访问远程服务器,或者从国内访问国外服务器等特殊场景。

1. 安装mosh

brew install mosh
sudo apt-get install mosh
安装后包括服务器和客户端软件。

2. 服务器端,启动mosh服务器

mosh-server new -c 256 -s -l LANG=en_US.UTF-8 -p 60000

3. 客户端,连接mosh服务器

mosh pi@pi42.local -p 6000

之后操作与远程ssh一样。

4. 不足

posted @ 2020-10-11 15:28  hyper99  阅读(1710)  评论(0编辑  收藏  举报