macOS
brew install moshlocal Homebrew formula metadata
安装
brew install moshlocal Homebrew formula metadata
sudo apk add moshAlpine Linux edge package indexes · mosh · 来源: dl-cdn.alpinelinux.org
sudo dnf install moshFedora Rawhide package metadata · mosh · 来源: dl.fedoraproject.org
nix profile install nixpkgs#moshnixpkgs package indexes · pkgs/by-name/mo/mosh/package.nix · 来源: api.github.com
sudo pacman -S moshArch Linux sync databases · mosh · 来源: geo.mirror.pkgbuild.com
sudo zypper install moshopenSUSE Tumbleweed package metadata · mosh · 来源: download.opensuse.org
scoop install main/mosh-clientScoop official bucket manifest trees · bucket/mosh-client.json · 来源: api.github.com
概览
Remote terminal application
历史
Mosh, the mobile shell, originated at MIT CSAIL as research by Keith Winstein and Hari Balakrishnan and was presented at USENIX ATC 2012. The paper framed it as a remote terminal application for intermittent connectivity, roaming between networks, and speculative local echo over high-latency paths. Its core technical contribution was the State Synchronization Protocol, a UDP-based protocol for synchronizing client and server terminal state even when the client's IP address changes.
The 2012 evaluation reported real-world keystroke traces from six users and found that Mosh could immediately display the effects of 70 percent of keystrokes; over a commercial EV-DO network, median keystroke response latency was under 5 ms compared with 503 ms for SSH. The USENIX page also records more than 15,000 downloads in the first week after release, making Mosh one of the better-known examples of systems research packaged as a practical Unix tool.
In everyday use, mosh looks like ssh at the command line but uses SSH only to authenticate and start mosh-server on the remote host. After the bootstrap, the terminal session moves to UDP, usually on a high port in the 60000-61000 range. It is packaged broadly across Unix-like systems because its main audience is shell users who work from laptops, unstable Wi-Fi, cellular links, or roaming networks and want terminal sessions to survive connectivity changes.
安全态势
broad file, network, media, or database tool signal. generalized runtime or code generation signal.
yellow 风险 · 中 置信度 · runtime
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
mosh | cli | 全局可执行文件 | |
mosh-client | cli | 全局可执行文件 | |
mosh-server | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/mobile-shell/mosh
安装元数据
| 软件包键 | brew:mosh |
|---|---|
| 版本 | 1.4.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/mosh |
| 主页 | https://mosh.org |
| 仓库 | https://github.com/mobile-shell/mosh |
| 上游文档 | https://github.com/mobile-shell/mosh#readme |
| 许可证 | GPL-3.0-or-later |
| 源码归档 | https://github.com/mobile-shell/mosh/releases/download/mosh-1.4.0/mosh-1.4.0.tar.gz |
| 最后更新 | 2026-06-20T05:07:43Z |
| Pulse | updated |
| 依赖 | protobuf |
| 构建依赖 | pkgconf, tmux |
| macOS 提供的库 | ncurses |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | mosh |
| Version Scheme | 0 |
| Revision | 40 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
mosh 1.4.0-1+b2
Mobile shell that supports roaming and intelligent local echo
sudo apt install moshmosh
nix profile install nixpkgs#moshmosh 1.4.0-1ubuntu3
Mobile shell that supports roaming and intelligent local echo
sudo apt install moshmosh 1.4.0-r18
Mobile shell surviving disconnects with local echo and line editing
sudo apk add moshmosh-bash-completion 1.4.0-r18
Bash completions for mosh
sudo apk add mosh-bash-completionmosh-client 1.4.0-r18
Mosh client
sudo apk add mosh-clientmosh-client-doc 1.4.0-r18
Mosh client (documentation)
sudo apk add mosh-client-docmosh-doc 1.4.0-r18
Mobile shell surviving disconnects with local echo and line editing (documentation)
sudo apk add mosh-docmosh-nftrules 1.4.0-r18
Mobile shell surviving disconnects with local echo and line editing (nftables ruleset)
sudo apk add mosh-nftrulesmosh-server 1.4.0-r18
Mosh server
sudo apk add mosh-servermosh-server-doc 1.4.0-r18
Mosh server (documentation)
sudo apk add mosh-server-docmosh 1.4.0-10.fc44
Mobile shell that supports roaming and intelligent local echo
sudo dnf install moshmosh 1.4.0-30
Mobile shell, surviving disconnects with local echo and line editing
sudo pacman -S moshmosh 1.4.0-5.17
The mobile shell
sudo zypper install moshmosh
sudo port install moshmain/mosh-client
scoop install main/mosh-client来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.