Mosh

提供: ArchWiki
2022年5月23日 (月) 02:08時点におけるKgx (トーク | 投稿記録)による版 (英語版から転載)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
ナビゲーションに移動 検索に移動

Mosh is an alternative interactive SSH terminal. It has support for roaming and local echo. It also aims to improve responsiveness on intermittent, and high latency connections.

Installation

ノート: Mosh must be installed on both the server and client.

Install the mosh package, or mosh-gitAUR for the latest revision. Note that truecolor support is only available in the latter.

Usage

ノート: Mosh by design does not let you access session history, consider installing a terminal multiplexer such as tmux or GNU Screen.

Mosh sessions by default use a random UDP port between 60000 to 61000, so this port range in the server should be accessible.

To connect, run:

$ mosh user@server-address

To send ssh options for connecting:

$ mosh --ssh="ssh -p 2222" user@server-address

You can make options permanent by using the usual OpenSSH Client Configuration.

ノート: Mosh has an undocumented command line option --predict=experimental which produces more aggressive echoing of local keystrokes. Users interested in low-latency visual confirmation of keyboard input may prefer this prediction mode.