利用 Mosh 改善 SSH

利用 Mosh 改善 SSH

在高延迟的网络下,Mosh 比 SSH 流畅多了,并且3G网络下,丢失网络变动IP后,终端链接不会中断。shell

安装

brew install mobile-shell网络

注: Server, Client 都须要安裝 mosh 才能够。ssh

用法

经典用法ide

Mosh will log the user in via SSH, then start a connection on a UDP port between 60000 and 61000.spa

$ mosh chewbacca.norad.milcode

Different usernameserver

$ mosh potus@ackbar.bls.govio

Server binary outside pathclass

$ mosh --server=/tmp/mosh-server r2d2mobile

Selecting Mosh UDP port

$ mosh -p 1234 darth

Selecting SSH port

$ mosh --ssh="ssh -p 2222" figrindan

相关文章
相关标签/搜索