# 使用 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
- **版本:** 2.17.3
- **来源摘要:** Advanced SSH config - Regex, aliases, gateways, includes and dynamic hosts
- **主页:** <https://v1.manfred.life/assh/>
- **仓库:** <https://github.com/moul/assh>
- **最后更新:** 2026-07-25T14:18:26-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- assh (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.17.3
## 项目历史与用法

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
## 其他软件包管理器记录

- 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


## Combined YAML source

View the package source record on GitHub. [combined/assh.yml](https://github.com/mxcl/pkgdb/blob/main/combined/assh.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
