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. 不足

相关文章:

  • 2022-01-13
  • 2021-05-26
  • 2022-12-23
  • 2022-01-02
  • 2021-12-02
  • 2021-12-02
  • 2021-12-03
  • 2021-11-30
猜你喜欢
  • 2022-12-23
  • 2021-09-04
  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案