第1行:ucgi:::命令未找到

时间:2023-01-13 23:06:41

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

我遵循了http://www.devthought t.com/2009/09/19/get-ssh-copy- in-mac-os-x/的说明,以便让ssh-copy-id在我的mac上工作

/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?

我试着遵循这里的说明:https://github.com/beautifulcode/ssh-copy-id-for-OSX,但每次我运行ssh-copy-id时,我都会得到相同的错误。如何修复我的情况并使ssh-copy-id正常工作?

3 个解决方案

#1


12  

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

#2


16  

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

IMHO,最简单的方法,就像你在mac上一样,就是使用brew。

brew install ssh-copy-id

#3


2  

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

#1


12  

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

#2


16  

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

IMHO,最简单的方法,就像你在mac上一样,就是使用brew。

brew install ssh-copy-id

#3


2  

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