Back

Mosh - 高延迟网络下的ssh解决方案

|

[Mosh](http://mosh.mit.edu)(Mobile Shell)是MIT某个实验室的项目,一个ssh替代品。
![mosh_result](https://r2.livy.fun/2025/12/21/6402d0c0a9d93f4341f5f386180509fd.jpg)
上图是该项目组给出的测试结果(via [Mosh Project](http://mosh.mit.edu)): 在Sprint EV-DO 3G网络下, Mosh大大降低了击键的平均响应时间 (173ms vs 515ms)。
需要同时在客户端/服务端安装Mosh。安装方法(Ubuntu):
[cc lang="bash"]
$ sudo apt-get install python-software-properties
$ sudo add-apt-repository ppa:keithw/mosh
$ sudo apt-get update
$ sudo apt-get install mosh
[/cc]
使用方法:
[cc lang="bash"]mosh --ssh="ssh -p PORT -i KEY" [email protected][/cc]

No comments yet

Leave a comment

About me

I live in Tasmania, an island a little far from the rest of the world and very close to the sea.
Father of two little girls, have two puppies.

Work

Work in IT industry, AI is my working partner.