ssh-copy-id
« Back to VersTracker
Description:
Add a public key to a remote machine's authorized_keys file
Type: Formula  |  Latest Version: 10.2p1@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
Sep 20, 2024 10:51pm 9.9p1 0 VERSION_BUMP f05b3890
Sep 20, 2024 3:08pm 9.9p1 0 VERSION_BUMP c160b58b