# Install mosh with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, scoop

Remote terminal application. Version 1.4.0 via Homebrew; verified 2026-06-20.

## Install

```sh
sudo av install brew:mosh
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install mosh
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mosh
```

  Evidence: MacPorts ports tree: net/mosh/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add mosh
```

  Evidence: Alpine Linux edge package indexes: mosh from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install mosh
```

  Evidence: Debian stable package indexes: mosh from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install mosh
```

  Evidence: Fedora Rawhide package metadata: mosh from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#mosh
```

  Evidence: nixpkgs package indexes: pkgs/by-name/mo/mosh/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S mosh
```

  Evidence: Arch Linux sync databases: mosh from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install mosh
```

  Evidence: openSUSE Tumbleweed package metadata: mosh from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/mosh-client
```

  Evidence: Scoop official bucket manifest trees: bucket/mosh-client.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:mosh
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/mosh>
- **Version:** 1.4.0
- **Source summary:** Remote terminal application
- **Homepage:** <https://mosh.org>
- **Repository:** <https://github.com/mobile-shell/mosh>
- **Upstream docs:** <https://github.com/mobile-shell/mosh#readme>
- **License:** GPL-3.0-or-later
- **Source archive:** <https://github.com/mobile-shell/mosh/releases/download/mosh-1.4.0/mosh-1.4.0.tar.gz>
- **Last updated:** 2026-06-20T05:07:43Z
- **Generated:** 2026-07-09T07:20:21+00:00

## Executables

- mosh (cli)
- mosh-client (cli)
- mosh-server (cli)
- mosh (alias)
- mosh-client (alias)
- mosh-server (alias)

## Dependencies

- protobuf

## Build dependencies

- pkgconf
- tmux

## Uses from macOS

- ncurses

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-09
- Package-manager version: 1.4.0
- Package-manager updated: 2026-06-20
- Local data: ok
- Upstream repository: https://github.com/mobile-shell/mosh
- info: No cached GitHub release or tag data was available.
## Project history and usage

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.

### Project history

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.

### How it is used

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.

### Sources

- <https://formulae.brew.sh/formula/mosh>
- <https://github.com/mobile-shell/mosh>
- <https://mosh.org/>
- <https://www.usenix.org/conference/atc12/technical-sessions/presentation/winstein>


## Security Notes

broad file, network, media, or database tool signal. generalized runtime or code generation signal.

- **Geiger risk:** yellow / medium
- broad file, network, media, or database tool signal
- generalized runtime or code generation signal

## Source Database Details

- **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:** head, stable

## Other Package-Manager Records

- Debian apt - mosh - 1.4.0-1+b2: normalized package name match | Debian stable package indexes: mosh from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Mobile shell that supports roaming and intelligent local echo | https://mosh.org
- Nix - mosh: normalized package name match | nixpkgs package indexes: pkgs/by-name/mo/mosh/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - mosh - 1.4.0-1ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: mosh from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Mobile shell that supports roaming and intelligent local echo | https://mosh.org
- apk - mosh - 1.4.0-r18: normalized package name match | Alpine Linux edge package indexes: mosh from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Mobile shell surviving disconnects with local echo and line editing | https://mosh.org
- apk - mosh-bash-completion - 1.4.0-r18: normalized package name match | Alpine Linux edge package indexes: mosh-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Bash completions for mosh | https://mosh.org
- apk - mosh-client - 1.4.0-r18: normalized package name match | Alpine Linux edge package indexes: mosh-client from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Mosh client | https://mosh.org
- apk - mosh-client-doc - 1.4.0-r18: normalized package name match | Alpine Linux edge package indexes: mosh-client-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Mosh client (documentation) | https://mosh.org
- apk - mosh-doc - 1.4.0-r18: normalized package name match | Alpine Linux edge package indexes: mosh-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Mobile shell surviving disconnects with local echo and line editing (documentation) | https://mosh.org
- apk - mosh-nftrules - 1.4.0-r18: normalized package name match | Alpine Linux edge package indexes: mosh-nftrules from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Mobile shell surviving disconnects with local echo and line editing (nftables ruleset) | https://mosh.org
- apk - mosh-server - 1.4.0-r18: normalized package name match | Alpine Linux edge package indexes: mosh-server from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Mosh server | https://mosh.org
- apk - mosh-server-doc - 1.4.0-r18: normalized package name match | Alpine Linux edge package indexes: mosh-server-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Mosh server (documentation) | https://mosh.org
- dnf - mosh - 1.4.0-10.fc44: normalized package name match | Fedora Rawhide package metadata: mosh from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Mobile shell that supports roaming and intelligent local echo | https://mosh.mit.edu/
- pacman - mosh - 1.4.0-30: normalized package name match | Arch Linux sync databases: mosh from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Mobile shell, surviving disconnects with local echo and line editing | https://mosh.org/
- zypper - mosh - 1.4.0-5.17: normalized package name match | openSUSE Tumbleweed package metadata: mosh from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | The mobile shell | https://mosh.org/
- MacPorts - mosh: normalized package name match | MacPorts ports tree: net/mosh/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/mosh-client: installed executable or alias match | Scoop official bucket manifest trees: bucket/mosh-client.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://www.automicvault.com/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [protobuf](https://www.automicvault.com/pkg/brew/protobuf/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [tmux](https://www.automicvault.com/pkg/brew/tmux/) - Build dependency declared by Homebrew.
- [putty](https://www.automicvault.com/pkg/brew/putty/) - Shares av.db curated category or tags: cli, networking, remote-access, ssh, terminal.
- [shellz](https://www.automicvault.com/pkg/brew/shellz/) - Shares av.db curated category or tags: cli, networking, remote-access, remote-shell, ssh.
- [trzsz](https://www.automicvault.com/pkg/brew/trzsz/) - Shares av.db curated category or tags: cli, networking, ssh, terminal.
- [trzsz-go](https://www.automicvault.com/pkg/brew/trzsz-go/) - Shares av.db curated category or tags: cli, networking, ssh, terminal.
- [chawan](https://www.automicvault.com/pkg/brew/chawan/) - Shares av.db curated category or tags: cli, networking, terminal.
- [links](https://www.automicvault.com/pkg/brew/links/) - Shares av.db curated category or tags: cli, networking, terminal.
- [mapscii](https://www.automicvault.com/pkg/brew/mapscii/) - Shares av.db curated category or tags: cli, networking, terminal.
- [mussh](https://www.automicvault.com/pkg/brew/mussh/) - Shares av.db curated category or tags: cli, networking, remote-access, ssh.
- [ssh3](https://www.automicvault.com/pkg/brew/ssh3/) - Security-sensitive metadata or terminology overlaps. Shared terms: access, cli, networking, remote, remote-access.
- [sshportal](https://www.automicvault.com/pkg/brew/sshportal/) - Security-sensitive metadata or terminology overlaps. Shared terms: access, cli, networking, remote, remote-access.

## Combined YAML source

View the package source record on GitHub. [combined/mosh.yml](https://github.com/automic-vault/db/blob/main/combined/mosh.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
