Automic VaultAutomic Vault

brew

使用 Homebrew, Nix, winget 安装 ssh-copy-id

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install ssh-copy-id

local Homebrew formula metadata

Windows

Windows Package Manager已验证 · 92%
winget install --id axeprpr.SSHCopyID -e

Windows Package Manager source index · axeprpr.SSHCopyID · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Add a public key to a remote machine's authorized_keys file

命令和别名

  • ssh-copy-id

历史

项目历史与用法

ssh-copy-id is the small OpenSSH-adjacent shell utility that installs a user's public SSH key into a remote account's authorized_keys file.

项目历史

OpenSSH itself began in 1999 when OpenBSD developers forked the free SSH 1.2.12/OSSH lineage, cleaned up licensing and portability issues, and shipped OpenSSH 1.2.2 with OpenBSD 2.6 on December 1, 1999. The portable OpenSSH tree was split out almost immediately for Linux and other Unix systems.

The ssh-copy-id script in the OpenSSH portable repository carries Philip Hands copyright from 1999 onward and describes itself as a shell script to install public keys on a remote machine. Over time it gained contributions for options such as force mode, dry-run mode, SFTP mode, alternate target paths, SSH config files, and port handling.

采用历史

ssh-copy-id became common Unix CLI glue because it automates the manual public-key setup described by ssh documentation: place a public key in the remote user's authorized_keys file. Homebrew packages it separately from the main OpenSSH formula for macOS users, while the input facts also list Nix and winget package names.

使用方式

The usual workflow is to run ssh-copy-id [-i identity_file] [user@]host. The script selects public keys from ssh-agent or from ${HOME}/.ssh/id*.pub, checks which keys are not already accepted, and appends the selected public keys to the remote .ssh/authorized_keys path unless a different target path is requested.

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

ssh-copy-id is package-manager folklore: a tiny shell script that saves users from remembering the exact ssh, mkdir, chmod, and cat incantation for public-key login setup. It is also a reminder that small contrib utilities can become first-class packages when operating systems omit them or users want them independently.

时间线

  • 1999: OpenSSH project began and OpenSSH 1.2.2 shipped with OpenBSD 2.6.
  • 1999: ssh-copy-id copyright begins with Philip Hands in the portable script.
  • 2014: openssh/openssh-portable mirror repository created on GitHub.
  • 2026: Homebrew formula tracks OpenSSH portable 10.3p1 for ssh-copy-id.

Related projects

  • Related commands and files include ssh, ssh-keygen, ssh-agent, ssh-add, sshd, OpenSSH portable, ${HOME}/.ssh/id*.pub, and .ssh/authorized_keys.

安全态势

风险级别:blue

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

风险分类器

blue 风险 · 中 置信度 · tool

原因

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

信号

  • text:ssh

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 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.

Credential files

Credential-bearing paths to review before unattended agent runs.

Unix
${HOME}/.ssh/id*.pub${HOME}/.ssh/id*.ssh/authorized_keys

可执行文件

已安装的可执行文件

命令类型暴露范围备注
ssh-copy-idcli全局可执行文件

新鲜度

版本和新鲜度

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

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

https://www.openssh.com/

安装元数据

软件包元数据

软件包键brew:ssh-copy-id
版本10.4p1
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/ssh-copy-id
主页https://www.openssh.com/
仓库https://github.com/openssh/openssh-portable
上游文档https://github.com/openssh/openssh-portable#readme
许可证SSH-OpenSSH
源码归档https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-10.4p1.tar.gz
最后更新2026-07-06T18:10:51Z
Pulseupdated
Bottle可用 (于 all)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namessh-copy-id
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyyes
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

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

Nix95%

ssh-copy-id

nix profile install nixpkgs#ssh-copy-id
  • normalized package name match
  • 匹配方式:Ssh Copy ID
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: ssh-copy-id from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
winget95%

axeprpr.SSHCopyID

winget install --id axeprpr.SSHCopyID -e
  • normalized package name match
  • 匹配方式:Ssh Copy ID
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: axeprpr.SSHCopyID from https://cdn.winget.microsoft.com/cache/source.msix

来源线索

由仓库数据生成

此页面由 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 configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment