I followed instructions at http://www.devthought.com/2009/09/19/get-ssh-copy-id-in-mac-os-x/ in order to get ssh-copy-id to work on my mac.
Now I am getting an error when running: ssh-copy-id
/usr/bin/ssh-copy-id: line 1: ucgi:: command not found
stat: script:: stat: No such file or directory
stat: No: stat: No such file or directory
stat: such: stat: No such file or directory
stat: file: stat: No such file or directory
stat: or: stat: No such file or directory
stat: directory: stat: No such file or directory
I have tried to follow the instructions here: https://github.com/beautifulcode/ssh-copy-id-for-OSX but I every time I run ssh-copy-id
I get the same error. How do I fix my situation and get ssh-copy-id
to work properly?
IMHO, the simplest way, as you are on a mac, is to use brew.
brew install ssh-copy-id
use the below command
sudo curl https://raw.githubusercontent.com/beautifulcode/ssh-copy-id-for-OSX/master/ssh-copy-id.sh -o /usr/local/bin/ssh-copy-id
sudo chmod +x /usr/bin/ssh-copy-id
The repository referenced in the first link is broken.
Try installing it this way:
sudo curl https://raw.github.com/beautifulcode/ssh-copy-id-for-OSX/master/ssh-copy-id.sh -o /usr/local/bin/ssh-copy-id
sudo chmod +x /usr/local/bin/ssh-copy-id
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With