ssh-copy-id
« Back to VersTracker
Description:
Add a public key to a remote machine's authorized_keys file
Type: Formula  |  Latest Version: 10.3p1@0  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Security
Tags: ssh authentication security remote-access automation
Install: brew install ssh-copy-id
About:
ssh-copy-id is a script that copies a user's public SSH key to a remote host's authorized_keys file. It handles appending the key correctly and setting proper permissions on the remote .ssh directory. This automates the process of enabling passwordless SSH authentication between machines.
Key Features:
  • Automates public key installation to remote hosts
  • Handles creation of remote .ssh directory and permissions
  • Appends keys safely without overwriting existing authorized_keys
  • Included with OpenSSH, requiring no separate installation
Use Cases:
  • Setting up passwordless SSH login for server administration
  • Deploying SSH keys for automated CI/CD pipeline access
  • Provisioning access for new developer workstations
Alternatives:
  • Manual SCP/SSH – More error-prone, requires multiple commands and manual permission setting
  • sshpass – Used for password automation but doesn't establish key-based auth
Version History
Detected Version Rev Change Commit
Apr 2, 2026 11:04am 10.3p1 0 VERSION_BUMP e325be8e
Sep 20, 2024 10:51pm 9.9p1 0 VERSION_BUMP f05b3890
Sep 20, 2024 3:08pm 9.9p1 0 VERSION_BUMP c160b58b
Dec 18, 2023 4:25pm 9.6p1 0 VERSION_BUMP 181aa94e
Oct 6, 2023 9:05pm 9.5p1 0 VERSION_BUMP 3c050603
Mar 16, 2023 4:05pm 9.3p1 0 VERSION_BUMP 1d8d9f42
Mar 16, 2023 4:05pm 9.3p1 0 VERSION_BUMP 47cf5913