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

标签 macos ssh chmod

我遵循了 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/

相关文章:

python - 连接SSH后弹出消息框

ssh - 如何在 gitlab 中添加 SSH key ?

PHP mkdir()、chmod() 和 Windows

linux - unix下文件的写权限

cocoa - 创建一个接受键盘输入的 cocoa 按钮

node.js - Express 命令在终端中不起作用

python - 无法导入pylab?

objective-c - AVCaptureVideoPreviewLayer 不显示

linux - 在 Slackware 13.0 中使用 key 配置 SSH

PHP 和权限