# openssh を Homebrew, apk, chocolatey, dnf, MacPorts, Nix, pacman, zypper, apt, scoop, winget でインストール

openssh のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:openssh
```

## エージェント安全性の回答

openssh provides remote login, key, and transfer tools with broad host access.

- **認証情報アクセス:** Reads SSH keys, agent sockets, known hosts, config, and forwarded credentials.
- **リモート変更:** Can execute commands and transfer files on remote hosts.
- **公開/成果物リスク:** Can deploy files, change servers, and expose forwarded credentials.
- **推奨コントロール:** Gate remote command execution, scp/sftp writes, key generation, and agent forwarding.
- **エージェント利用ガイダンス:** Allow local key inspection; require approval before connecting to or mutating remote hosts.

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install openssh
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install openssh
```

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

### Linux

- apk (92%):

```sh
sudo apk add openssh
```

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

- dnf (92%):

```sh
sudo dnf install openssh
```

  証拠: Fedora Rawhide package metadata: openssh from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#openssh
```

  証拠: nixpkgs package indexes: openssh from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S openssh
```

  証拠: Arch Linux sync databases: openssh from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz

- zypper (92%):

```sh
sudo zypper install openssh
```

  証拠: openSUSE Tumbleweed package metadata: openssh from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

- Debian apt (92%):

```sh
sudo apt install openssh-client
```

  証拠: Debian stable package indexes: openssh-client from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

### Windows

- Chocolatey (92%):

```sh
choco install openssh
```

  証拠: Chocolatey community package catalog: openssh from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','openconnect-gui'

- Scoop (92%):

```sh
scoop install main/openssh
```

  証拠: Scoop official bucket manifest trees: bucket/openssh.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id Syncplify.Server -e
```

  証拠: Windows Package Manager source index: Syncplify.Server from https://cdn.winget.microsoft.com/cache/source.msix

## パッケージ情報

- **パッケージキー:** brew:openssh
- **パッケージマネージャ:** Homebrew
- **バージョン:** 10.4p1
- **ソース概要:** OpenBSD freely-licensed SSH connectivity tools
- **ホームページ:** <https://www.openssh.com/>
- **最終更新:** 2026-07-06T18:10:51Z
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- scp (エイリアス)
- sftp (エイリアス)
- slogin (エイリアス)
- ssh (エイリアス)
- ssh-add (エイリアス)
- ssh-agent (エイリアス)
- ssh-keygen (エイリアス)
- ssh-keyscan (エイリアス)
- sshd (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 10.4p1
## プロジェクトの歴史と使われ方

OpenSSH is the OpenBSD project's freely licensed implementation of the SSH protocol suite: remote login, remote command execution, file transfer, key management, agent forwarding, and server-side SSH access. The package includes `ssh`, `sshd`, `scp`, `sftp`, `ssh-keygen`, `ssh-agent`, `ssh-add`, and related tools.

### プロジェクトの歴史

OpenSSH began in 1999 when OpenBSD developers forked Bjorn Gronvall's OSSH, itself derived from Tatu Ylonen's last sufficiently free ssh 1.2.12 release. The OpenSSH project history describes the goal as freeing SSH from license restrictions, cleaning up the code, and maintaining it under the OpenBSD security-audit culture.

The initial import landed on September 26, 1999, shortly before OpenBSD 2.6. The early team removed portability clutter, replaced problematic cryptographic and GPL components, repaired bugs, restored features, and added support for SSH 1.5 and later SSH 2. The OpenBSD manual credits Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo de Raadt, and Dug Song with creating OpenSSH from the original free ssh base.

OpenSSH's project goal was explicit: because telnet and rlogin are insecure, operating systems should ship SSH support. SSH 2 support became usable around May 4, 2000, solving the integrity and patent-era problems of SSH 1 and giving OpenSSH the protocol base that would become standard for secure administration.

### 採用の歴史

OpenSSH became infrastructure software because it replaced insecure remote-login and file-transfer tools with a default, scriptable, auditable SSH suite. The portable release made the OpenBSD code usable on Linux, macOS, Cygwin, Solaris, AIX, HP-UX, and other Unix-like systems by adding compatibility layers, PAM/auditing hooks, and platform-specific sandboxing.

Package managers generally split OpenSSH into client and server packages or ship it in the operating-system base. Homebrew's `openssh` formula exists for users who want a packaged OpenSSH newer or different from the system copy, with dependencies such as libfido2 and OpenSSL for modern authentication and crypto support.

### 使われ方

Operators use OpenSSH for daily host access, jump hosts, port forwarding, remote command execution, Git-over-SSH, rsync transport, and automated deployments. Developers touch the package through keys, `~/.ssh/config`, known-host verification, `ssh-agent`, `scp`/`sftp`, and server configuration in `sshd_config`.

OpenSSH also functions as a security policy surface. Choices such as allowed key algorithms, FIDO/U2F support, host key rotation, agent forwarding, chrooting, and subsystem configuration are all exposed through a familiar command and config ecosystem.

### パッケージ好きにとっての重要性

OpenSSH is one of the canonical examples of a package becoming part of the operating-system substrate. It is both an upstream security project and a downstream packaging problem: vendors patch it, split client/server binaries, coordinate crypto-library choices, and backport fixes because remote access breakage can lock administrators out of machines.

For package nerds, OpenSSH is also a portability case study. The upstream OpenBSD version stays small and tightly audited, while portable OpenSSH carries the compatibility code that lets one security-sensitive codebase work across many Unix variants.

### タイムライン

- 1999: OpenBSD developers fork OSSH and import the code on September 26.
- December 1, 1999: OpenBSD 2.6 ships with OpenSSH.
- May 4, 2000: SSH 2 support is implemented sufficiently to be usable.
- 2017: OpenSSH 7.6 removes SSH 1 protocol support.
- 2026: Homebrew packages OpenSSH 10.3p1 in the `openssh` formula.

### Related projects

- OpenSSH descends from Tatu Ylonen's original SSH and Bjorn Gronvall's OSSH. It interacts with crypto libraries such as LibreSSL, OpenSSL, AWS-LC, and BoringSSL, and it overlaps operationally with file-transfer tools, bastion-host systems, VPNs, and configuration-management systems.

### ソース

- <https://formulae.brew.sh/formula/openssh>
- <https://github.com/openssh/openssh-portable>
- <https://man.openbsd.org/ssh.1>
- <https://www.openssh.com/goals.html>
- <https://www.openssh.com/history.html>
- <https://www.openssh.com/portable.html>


## セキュリティノート

broad file, network, media, or database tool signal.

- **Geiger リスク:** blue / 中
- broad file, network, media, or database tool signal


## 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/config

## Credential files

- Unix: ~/.ssh/id_*, ~/.ssh/config
## 他のパッケージマネージャ記録

- Debian apt - openssh-client - 1:10.0p1-7+deb13u4: normalized package name match | Debian stable package indexes: openssh-client from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | secure shell (SSH) client, for secure access to remote machines | https://www.openssh.com/
- Debian apt - openssh-client-gssapi - 1:10.0p1-7+deb13u4: normalized package name match | Debian stable package indexes: openssh-client-gssapi from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | secure shell (SSH) client, with GSS-API support | https://www.openssh.com/
- Debian apt - openssh-server - 1:10.0p1-7+deb13u4: normalized package name match | Debian stable package indexes: openssh-server from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | secure shell (SSH) server, for secure access from remote machines | https://www.openssh.com/
- Debian apt - openssh-server-gssapi - 1:10.0p1-7+deb13u4: normalized package name match | Debian stable package indexes: openssh-server-gssapi from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | secure shell (SSH) server, with GSS-API key exchange | https://www.openssh.com/
- Debian apt - openssh-sftp-server - 1:10.0p1-7+deb13u4: normalized package name match | Debian stable package indexes: openssh-sftp-server from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | secure shell (SSH) sftp server module, for SFTP access from remote machines | https://www.openssh.com/
- Debian apt - openssh-tests - 1:10.0p1-7+deb13u4: normalized package name match | Debian stable package indexes: openssh-tests from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | OpenSSH regression tests | https://www.openssh.com/
- Debian apt - ssh - 1:10.0p1-7+deb13u4: normalized package name match | Debian stable package indexes: ssh from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | secure shell client and server (metapackage) | https://www.openssh.com/
- Debian apt - ssh-askpass-gnome - 1:10.0p1-7+deb13u4: normalized package name match | Debian stable package indexes: ssh-askpass-gnome from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | interactive X program to prompt users for a passphrase for ssh-add | https://www.openssh.com/
- Nix - openssh: normalized package name match | nixpkgs package indexes: openssh from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - openssh-client - 1:9.6p1-3ubuntu13: normalized package name match | Ubuntu 24.04 LTS package indexes: openssh-client from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | secure shell (SSH) client, for secure access to remote machines | https://www.openssh.com/
- Ubuntu apt - openssh-server - 1:9.6p1-3ubuntu13: normalized package name match | Ubuntu 24.04 LTS package indexes: openssh-server from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | secure shell (SSH) server, for secure access from remote machines | https://www.openssh.com/
- Ubuntu apt - openssh-sftp-server - 1:9.6p1-3ubuntu13: normalized package name match | Ubuntu 24.04 LTS package indexes: openssh-sftp-server from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | secure shell (SSH) sftp server module, for SFTP access from remote machines | https://www.openssh.com/
- Ubuntu apt - openssh-tests - 1:9.6p1-3ubuntu13: normalized package name match | Ubuntu 24.04 LTS package indexes: openssh-tests from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | OpenSSH regression tests | https://www.openssh.com/
- Ubuntu apt - ssh - 1:9.6p1-3ubuntu13: normalized package name match | Ubuntu 24.04 LTS package indexes: ssh from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | secure shell client and server (metapackage) | https://www.openssh.com/
- Ubuntu apt - ssh-askpass-gnome - 1:9.6p1-3ubuntu13: normalized package name match | Ubuntu 24.04 LTS package indexes: ssh-askpass-gnome from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | interactive X program to prompt users for a passphrase for ssh-add | https://www.openssh.com/
- apk - openssh - 10.4_p1-r1: normalized package name match | Alpine Linux edge package indexes: openssh from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Port of OpenBSD's free SSH release | https://www.openssh.com/portable.html


## Combined YAML source

View the package source record on GitHub. [combined/openssh.yml](https://github.com/mxcl/pkgdb/blob/main/combined/openssh.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
- curated agent safety answer
