Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

/usr/bin/ssh-copy-id: line 1: ucgi:: command not found

Tags:

macos

chmod

ssh

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?

like image 425
Benjamin Bakhshi Avatar asked Mar 03 '13 12:03

Benjamin Bakhshi


3 Answers

IMHO, the simplest way, as you are on a mac, is to use brew.

brew install ssh-copy-id
like image 86
jlfenaux Avatar answered Nov 14 '22 23:11

jlfenaux


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
like image 24
Pradheep Avatar answered Nov 14 '22 22:11

Pradheep


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
like image 2
ConcurrentHashMap Avatar answered Nov 14 '22 22:11

ConcurrentHashMap