How do you install ssh-copy-id on a Mac?

Technic1an picture Technic1an · Sep 4, 2014 · Viewed 79.9k times · Source

I am having trouble trying to install ssh-copy-id on my Mac. I have tried to follow https://github.com/beautifulcode/ssh-copy-id-for-OSX but every time I run ssh-copy-id it gives me errors. Any ideas on how to get ssh-copy-id to install?

Answer

nwinkler picture nwinkler · Sep 4, 2014

You can install it using Homebrew:

brew install ssh-copy-id

If you don't want to use Homebrew, you can use this Mac port:

curl -L https://raw.githubusercontent.com/beautifulcode/ssh-copy-id-for-OSX/master/install.sh | sh