Automic VaultAutomic Vault

brew

使用 Homebrew, apk, chocolatey, dnf, MacPorts, Nix, pacman, zypper, apt, scoop, winget 安装 openssh

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

代理安全

代理安全回答

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%
brew install openssh

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install openssh

MacPorts ports tree · net/openssh/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add openssh

Alpine Linux edge package indexes · openssh · 来源: dl-cdn.alpinelinux.org

Fedora dnf已验证 · 92%
sudo dnf install openssh

Fedora Rawhide package metadata · openssh · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#openssh

nixpkgs package indexes · openssh · 来源: raw.githubusercontent.com

Arch Linux pacman已验证 · 92%
sudo pacman -S openssh

Arch Linux sync databases · openssh · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install openssh

openSUSE Tumbleweed package metadata · openssh · 来源: download.opensuse.org

Debian apt已验证 · 92%
sudo apt install openssh-client

Debian stable package indexes · openssh-client · 来源: deb.debian.org

Windows

Chocolatey已验证 · 92%
choco install openssh

Chocolatey community package catalog · openssh · 来源: community.chocolatey.org

Scoop已验证 · 92%
scoop install main/openssh

Scoop official bucket manifest trees · bucket/openssh.json · 来源: api.github.com

Windows Package Manager已验证 · 92%
winget install --id Syncplify.Server -e

Windows Package Manager source index · Syncplify.Server · 来源: cdn.winget.microsoft.com

概览

软件包摘要

OpenBSD freely-licensed SSH connectivity tools

命令和别名

  • scp
  • sftp
  • slogin
  • ssh
  • ssh-add
  • ssh-agent
  • ssh-keygen
  • ssh-keyscan
  • sshd

历史

项目历史与用法

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.

安全态势

风险级别:blue

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

风险分类器

blue 风险 · 中 置信度 · tool

原因

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

信号

  • text:ftp,ssh

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 3 个运行时依赖。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

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

Config paths the tool may read or write during local use.

Unix
~/.ssh/config

Credential files

Credential-bearing paths to review before unattended agent runs.

Unix
~/.ssh/id_*~/.ssh/config

可执行文件

已安装的可执行文件

命令类型暴露范围备注
scpcli全局可执行文件
sftpcli全局可执行文件
slogincli全局可执行文件
sshcli全局可执行文件
ssh-addcli全局可执行文件
ssh-agentcli全局可执行文件
ssh-keygencli全局可执行文件
ssh-keyscancli全局可执行文件
sshdcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本10.4p1
管理器更新时间2026-07-06
本地数据OK
上游not checked
检测到的最新版本未检测到

https://www.openssh.com/

安装元数据

软件包元数据

软件包键brew:openssh
版本10.4p1
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/openssh
主页https://www.openssh.com/
仓库https://anongit.mindrot.org/openssh.git
上游文档https://www.openssh.com/manual.html
许可证SSH-OpenSSH
源码归档https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-10.4p1.tar.gz
最后更新2026-07-06T18:10:51Z
Pulseupdated
依赖ldns, libfido2, openssl@3
构建依赖pkgconf
macOS 提供的库krb5, libedit, libxcrypt
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameopenssh
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

openssh-client 1:10.0p1-7+deb13u4

secure shell (SSH) client, for secure access to remote machines

https://www.openssh.com/

sudo apt install openssh-client
  • Section: net
  • Architecture: amd64
  • Source Package: openssh
  • 10 依赖
  • 1 提供
  • 5 可选依赖
  • normalized package name match
  • 匹配方式:Openssh
Debian stable package indexes · deb.debian.org · Debian stable package indexes: openssh-client from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

openssh-client-gssapi 1:10.0p1-7+deb13u4

secure shell (SSH) client, with GSS-API support

https://www.openssh.com/

sudo apt install openssh-client-gssapi
  • Section: net
  • Architecture: all
  • Source Package: openssh
  • 1 依赖
  • normalized package name match
  • 匹配方式:Openssh
Debian stable package indexes · deb.debian.org · Debian stable package indexes: openssh-client-gssapi from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

openssh-server 1:10.0p1-7+deb13u4

secure shell (SSH) server, for secure access from remote machines

https://www.openssh.com/

sudo apt install openssh-server
  • Section: net
  • Architecture: amd64
  • Source Package: openssh
  • 25 依赖
  • 1 提供
  • 9 可选依赖
  • normalized package name match
  • 匹配方式:Openssh
Debian stable package indexes · deb.debian.org · Debian stable package indexes: openssh-server from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

openssh-server-gssapi 1:10.0p1-7+deb13u4

secure shell (SSH) server, with GSS-API key exchange

https://www.openssh.com/

sudo apt install openssh-server-gssapi
  • Section: net
  • Architecture: all
  • Source Package: openssh
  • 2 依赖
  • normalized package name match
  • 匹配方式:Openssh
Debian stable package indexes · deb.debian.org · Debian stable package indexes: openssh-server-gssapi from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

openssh-sftp-server 1:10.0p1-7+deb13u4

secure shell (SSH) sftp server module, for SFTP access from remote machines

https://www.openssh.com/

sudo apt install openssh-sftp-server
  • Section: net
  • Architecture: amd64
  • Source Package: openssh
  • 2 依赖
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Openssh
Debian stable package indexes · deb.debian.org · Debian stable package indexes: openssh-sftp-server from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

openssh-tests 1:10.0p1-7+deb13u4

OpenSSH regression tests

https://www.openssh.com/

sudo apt install openssh-tests
  • Section: net
  • Architecture: amd64
  • Source Package: openssh
  • 10 依赖
  • normalized package name match
  • 匹配方式:Openssh
Debian stable package indexes · deb.debian.org · Debian stable package indexes: openssh-tests from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

ssh 1:10.0p1-7+deb13u4

secure shell client and server (metapackage)

https://www.openssh.com/

sudo apt install ssh
  • Section: net
  • Architecture: all
  • Source Package: openssh
  • 2 依赖
  • normalized package name match
  • 匹配方式:Openssh
Debian stable package indexes · deb.debian.org · Debian stable package indexes: ssh from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

ssh-askpass-gnome 1:10.0p1-7+deb13u4

interactive X program to prompt users for a passphrase for ssh-add

https://www.openssh.com/

sudo apt install ssh-askpass-gnome
  • Section: gnome
  • Architecture: amd64
  • Source Package: openssh
  • 5 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Openssh
Debian stable package indexes · deb.debian.org · Debian stable package indexes: ssh-askpass-gnome from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

openssh

nix profile install nixpkgs#openssh
  • normalized package name match
  • 匹配方式:Openssh
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: openssh from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Ubuntu apt95%

openssh-client 1:9.6p1-3ubuntu13

secure shell (SSH) client, for secure access to remote machines

https://www.openssh.com/

sudo apt install openssh-client
  • Section: net
  • Architecture: amd64
  • Source Package: openssh
  • 9 依赖
  • 1 提供
  • 5 可选依赖
  • normalized package name match
  • 匹配方式:Openssh
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: openssh-client from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

openssh-server 1:9.6p1-3ubuntu13

secure shell (SSH) server, for secure access from remote machines

https://www.openssh.com/

sudo apt install openssh-server
  • Section: net
  • Architecture: amd64
  • Source Package: openssh
  • 21 依赖
  • 1 提供
  • 10 可选依赖
  • normalized package name match
  • 匹配方式:Openssh
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: openssh-server from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

openssh-sftp-server 1:9.6p1-3ubuntu13

secure shell (SSH) sftp server module, for SFTP access from remote machines

https://www.openssh.com/

sudo apt install openssh-sftp-server
  • Section: net
  • Architecture: amd64
  • Source Package: openssh
  • 2 依赖
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Openssh
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: openssh-sftp-server from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

openssh-tests 1:9.6p1-3ubuntu13

OpenSSH regression tests

https://www.openssh.com/

sudo apt install openssh-tests
  • Section: universe/net
  • Architecture: amd64
  • Source Package: openssh
  • 9 依赖
  • normalized package name match
  • 匹配方式:Openssh
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: openssh-tests from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

ssh 1:9.6p1-3ubuntu13

secure shell client and server (metapackage)

https://www.openssh.com/

sudo apt install ssh
  • Section: net
  • Architecture: all
  • Source Package: openssh
  • 2 依赖
  • normalized package name match
  • 匹配方式:Openssh
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: ssh from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

ssh-askpass-gnome 1:9.6p1-3ubuntu13

interactive X program to prompt users for a passphrase for ssh-add

https://www.openssh.com/

sudo apt install ssh-askpass-gnome
  • Section: universe/gnome
  • Architecture: amd64
  • Source Package: openssh
  • 5 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Openssh
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: ssh-askpass-gnome from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

openssh 10.3_p1-r0

Port of OpenBSD's free SSH release

https://www.openssh.com/portable.html

sudo apk add openssh
  • License: SSH-OpenSSH
  • Architecture: x86_64
  • Source Package: openssh
  • 1 依赖
  • normalized package name match
  • 匹配方式:Openssh
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: openssh from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated agent safety answer
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment