# 使用 Homebrew, MacPorts, Nix 安装 assh

查看 assh 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:assh
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install assh
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install assh
```

  证据: MacPorts ports tree: sysutils/assh/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#assh
```

  证据: nixpkgs package indexes: pkgs/by-name/as/assh/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:assh
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/assh>
- **版本:** 2.17.2
- **来源摘要:** Advanced SSH config - Regex, aliases, gateways, includes and dynamic hosts
- **主页:** <https://v1.manfred.life/assh/>
- **仓库:** <https://github.com/moul/assh>
- **上游文档:** <https://github.com/moul/assh#readme>
- **许可证:** MIT
- **源码归档:** <https://github.com/moul/assh/archive/refs/tags/v2.17.2.tar.gz>
- **最后更新:** 2026-05-12T16:18:23Z
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- assh (cli)
- assh (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 2.17.2
- 管理器更新时间: 2026-05-12
- 本地数据: OK
- 上游仓库: https://github.com/moul/assh
- 检测到的最新版本: v2.17.2 (当前)
## 项目历史与用法

assh is a Go-based SSH configuration helper formerly known as Advanced SSH Config. Its niche is not replacing OpenSSH, but generating and wrapping OpenSSH configuration so regular SSH-dependent tools can use richer host aliases, regex-like matching, gateways, includes, templates, Graphviz output, JSON output, and YAML configuration.

### 项目历史

The public GitHub repository dates to 2011 and the official project page describes the rename from Advanced SSH Config to assh. The README frames the tool as a transparent wrapper around SSH: lib-ssh uses assh as a ProxyCommand, so the generated behavior works through normal ssh, scp, rsync, git, and desktop tools that rely on SSH rather than through a separate protocol stack.

The project grew around pain points in large SSH estates: gateway chaining, dynamic hostnames, inherited host templates, generated known-host entries, and automatic regeneration of ~/.ssh/config. Its README also notes that OpenSSH 7.3 later gained native Include support, which is useful context for package maintainers because some early assh value moved into the base OpenSSH feature set while assh kept broader YAML/gateway/template behavior.

### 采用历史

assh sits in the package-manager culture of personal infrastructure tools: the supplied Homebrew facts also list MacPorts and Nix packaging. Its README and project page emphasize integration with standard SSH consumers rather than a new client, which made it useful to developers and operators who wanted one enriched configuration layer to affect many existing commands.

### 使用方式

Typical use starts with ~/.ssh/assh.yml, optional split files under ~/.ssh/assh.d/*.yml, and generated ~/.ssh/config output. Package users mostly care about the executable because it can build or refresh OpenSSH config, graph the host topology, manage sockets, and let normal ssh invocations resolve aliases and gateway chains.

### 为什么软件包爱好者会关心

For package nerds, assh is an example of a small Unix-style wrapper with outsized workflow impact: it compiles declarative YAML into OpenSSH-native config, keeps compatibility with existing SSH tooling, and exposes enough introspection output to make SSH inventories scriptable. Its config-path defaults are also important because installing the package can affect a user's core ~/.ssh/config workflow.

### 时间线

- 2011: moul/assh repository created on GitHub.
- 2016: OpenSSH 7.3 added native Include support, later noted in assh's README as overlapping with one assh configuration feature.
- 2026: GitHub repository metadata showed continued activity and the README still documented assh as an SSH wrapper/config generator.

### Related projects

- OpenSSH provides the ssh client, ~/.ssh/config, and ProxyCommand behavior that assh generates around.
- Graphviz is used by assh for host graph output.
- Other SSH inventory and config-management tools overlap with assh's generated-configuration use case, but assh's official docs emphasize staying compatible with ssh, scp, rsync, git, and lib-ssh consumers.

### 来源

- <https://api.github.com/repos/moul/assh>
- <https://github.com/moul/assh#readme>
- <https://v1.manfred.life/assh>
- source_facts.package-manager


## 安全说明

没有找到 assh 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.ssh/assh.yml, ~/.ssh/assh.d/*.yml, /etc/assh.yml, ~/.ssh/config
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** assh
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- Nix - assh: normalized package name match | nixpkgs package indexes: pkgs/by-name/as/assh/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - assh: normalized package name match | MacPorts ports tree: sysutils/assh/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://www.automicvault.com/zh-hans/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [go](https://www.automicvault.com/zh-hans/pkg/brew/go/) - Build dependency declared by Homebrew.
- [autossh](https://www.automicvault.com/zh-hans/pkg/brew/autossh/) - Shares av.db curated category or tags: cli, networking, ssh.
- [connect](https://www.automicvault.com/zh-hans/pkg/brew/connect/) - Shares av.db curated category or tags: cli, networking, ssh.
- [corkscrew](https://www.automicvault.com/zh-hans/pkg/brew/corkscrew/) - Shares av.db curated category or tags: cli, networking, ssh.
- [putty](https://www.automicvault.com/zh-hans/pkg/brew/putty/) - Shares av.db curated category or tags: cli, networking, ssh.
- [aerleon](https://www.automicvault.com/zh-hans/pkg/brew/aerleon/) - Shares av.db curated category or tags: cli, networking.
- [ahcpd](https://www.automicvault.com/zh-hans/pkg/brew/ahcpd/) - Shares av.db curated category or tags: cli, networking.
- [airshare](https://www.automicvault.com/zh-hans/pkg/brew/airshare/) - Shares av.db curated category or tags: cli, networking.
- [avahi](https://www.automicvault.com/zh-hans/pkg/brew/avahi/) - Shares av.db curated category or tags: cli, networking.
- [sshportal](https://www.automicvault.com/zh-hans/pkg/brew/sshportal/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, networking, ssh.

## Combined YAML source

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


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- 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
