我遵循了 http://www.devthought.com/2009/09/19/get-ssh-copy-id-in-mac-os-x/ 的说明为了让 ssh-copy-id 在我的 Mac 上工作。
现在运行时出现错误: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
我尝试按照此处的说明进行操作:https://github.com/beautifulcode/ssh-copy-id-for-OSX但我每次跑
ssh-copy-id
我犯了同样的错误。我如何解决我的情况并获得 ssh-copy-id
正常工作?
最佳答案
恕我直言,最简单的方法是使用 brew。
brew install ssh-copy-id
关于macos -/usr/bin/ssh-copy-id: line 1: ucgi::command not found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15185566/