macOS
brew install opksshlocal Homebrew formula metadata
安装
brew install opksshlocal Homebrew formula metadata
sudo apt install opksshDebian stable package indexes · opkssh · 来源: deb.debian.org
sudo dnf install opksshFedora Rawhide package metadata · opkssh · 来源: dl.fedoraproject.org
nix profile install nixpkgs#opksshnixpkgs package indexes · pkgs/by-name/op/opkssh/package.nix · 来源: api.github.com
winget install --id openpubkey.opkssh -eWindows Package Manager source index · openpubkey.opkssh · 来源: cdn.winget.microsoft.com
概览
Enables SSH to be used with OpenID Connect
历史
opkssh, short for OpenPubkey SSH, brings OpenID Connect identity into ordinary SSH login flows. It lets administrators authorize identities such as email addresses and groups instead of distributing long-lived SSH public keys, while still using the stock SSH client and server protocol.
The tool is built on OpenPubkey, a protocol described in a 2023 IACR paper that binds a user-held public key into an OpenID Connect ID Token, turning that token into what the authors call a PK Token. opkssh applies that idea to SSH by generating an SSH key/certificate carrying the PK Token and by configuring sshd to verify it.
Cloudflare announced on 2025-03-25 that it had open-sourced OPKSSH under the OpenPubkey project. The announcement says the OpenPubkey protocol became an open source Linux Foundation project in 2023, while OPKSSH had remained closed source under BastionZero, later Cloudflare, until the donation.
The project moved quickly into normal package-manager territory for a security tool: its metadata lists packages for Homebrew, Debian development packages, Fedora, Nix, and Windows winget, and the README documents Homebrew, winget, Chocolatey, Nix, and direct binary installs.
A user runs `opkssh login`, authenticates in a browser with an OpenID Provider, and receives a generated SSH key whose public side contains the OpenPubkey token. On the server, opkssh is used through sshd's `AuthorizedKeysCommand` hook, so the verifier can extract the PK Token, validate the identity provider signature and expiry, and map the identity to a Unix or Windows account.
Operators use `/etc/opk/providers` to choose trusted OpenID Providers and client IDs, and `/etc/opk/auth_id` or per-user equivalents to authorize identities, subjects, or group claims. The design gives SSH administrators an SSO-style access list without changing the SSH wire protocol.
opkssh is interesting because it packages an identity-protocol research result as a small CLI that plugs into a decades-old Unix extension point. For package nerds, the notable bit is not a new daemon or a replacement SSH stack, but a cross-platform binary that makes SSH key lifecycle policy distributable through package managers.
安全态势
broad file, network, media, or database tool signal.
blue 风险 · 中 置信度 · tool
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
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.
Config paths the tool may read or write during local use.
/etc/opk/providers/etc/opk/auth_id/etc/opk/policy.d/*.yml~/.opk/config.yml%ProgramData%\opk\providers%ProgramData%\opk\auth_id可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
opkssh | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/openpubkey/opkssh
安装元数据
| 软件包键 | brew:opkssh |
|---|---|
| 版本 | 0.16.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/opkssh |
| 主页 | https://eprint.iacr.org/2023/296 |
| 仓库 | https://github.com/openpubkey/opkssh |
| 上游文档 | https://github.com/openpubkey/opkssh#readme |
| 许可证 | Apache-2.0 |
| 源码归档 | https://github.com/openpubkey/opkssh/archive/refs/tags/v0.16.0.tar.gz |
| 最后更新 | 2026-07-14T18:47:27Z |
| Pulse | updated |
| 构建依赖 | go |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | opkssh |
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
golang-github-openpubkey-opkssh-dev 0.4.0-1
OpenPubkey SSH tools for OpenID SSH logins (library)
https://github.com/openpubkey/opkssh
sudo apt install golang-github-openpubkey-opkssh-devopkssh 0.4.0-1+b2
OpenPubkey SSH tools for OpenID SSH logins (program)
https://github.com/openpubkey/opkssh
sudo apt install opksshopkssh
nix profile install nixpkgs#opksshopkssh 0.14.0-2.fc45
OpenPubkey SSH
https://github.com/openpubkey/opkssh
sudo dnf install opksshopkssh-doc 0.14.0-2.fc45
Documentation for OpenPubkey SSH
https://github.com/openpubkey/opkssh
sudo dnf install opkssh-docopkssh-server 0.14.0-2.fc45
Server configuration for OpenPubkey SSH
https://github.com/openpubkey/opkssh
sudo dnf install opkssh-serveropkssh-server-selinux 0.14.0-2.fc45
SELinux policy for OpenPubkey SSH
https://github.com/openpubkey/opkssh
sudo dnf install opkssh-server-selinuxopenpubkey.opkssh
winget install --id openpubkey.opkssh -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.