# Installer ssh-copy-id avec Homebrew, Nix, winget

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de ssh-copy-id pour les workflows d'agents IA.

## installation

```sh
sudo av install brew:ssh-copy-id
```

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install ssh-copy-id
```

  Preuve: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#ssh-copy-id
```

  Preuve: nixpkgs package indexes: ssh-copy-id from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

### Windows

- winget (92%):

```sh
winget install --id axeprpr.SSHCopyID -e
```

  Preuve: Windows Package Manager source index: axeprpr.SSHCopyID from https://cdn.winget.microsoft.com/cache/source.msix

## Faits du paquet

- **Clé du paquet:** brew:ssh-copy-id
- **Gestionnaire de paquets:** Homebrew
- **Version:** 10.4p1
- **Résumé source:** Add a public key to a remote machine's authorized_keys file
- **Page d'accueil:** <https://www.openssh.com/>
- **Dépôt:** <https://github.com/openssh/openssh-portable>
- **Dernière mise à jour:** 2026-07-06T18:10:51Z
- **Généré:** 2026-08-03T19:37:03+00:00

## exécutables

- ssh-copy-id (alias)

## Comportement d'installation

- Bouteille: non disponible

## Version et fraîcheur

- page générée: 2026-08-03
- version du gestionnaire: 10.4p1
## Historique du projet et usages

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.

### Historique du projet

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.

### Historique d'adoption

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.

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

- 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.

### Sources

- <https://api.github.com/repos/openssh/openssh-portable>
- <https://formulae.brew.sh/api/formula/ssh-copy-id.json>
- <https://github.com/openssh/openssh-portable/blob/master/contrib/ssh-copy-id>
- <https://www.openssh.com/history.html>
- input.source_facts.package-manager


## Notes de sécurité

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

- **Risque Geiger:** blue / moyen
- 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.


## Credential files

- Unix: ${HOME}/.ssh/id*.pub, ${HOME}/.ssh/id*, .ssh/authorized_keys
## Autres enregistrements de gestionnaires de paquets

- Nix - ssh-copy-id: normalized package name match | nixpkgs package indexes: ssh-copy-id from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- winget - axeprpr.SSHCopyID: normalized package name match | Windows Package Manager source index: axeprpr.SSHCopyID from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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


## Sources

- 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
