How do you install ssh-copy-id on a Mac?

后端 未结 5 1592
孤城傲影
孤城傲影 2021-01-29 22:49

I am having trouble trying to install ssh-copy-id on my Mac. I have tried to follow https://github.com/beautifulcode/ssh-copy-id-for-OSX but every time I run ssh-copy-id it giv

5条回答
  •  醉酒成梦
    2021-01-29 23:06

    The above methods do not work on old Macs. I have a lion OS. use this instead because the ssh-copy-id can not be installed with brew on old PCs due to compiling dependencies errors at ssl.

    cat ~/.ssh/id_rsa.pub | ssh user@123.45.56.78 "mkdir -p ~/.ssh && cat >>  ~/.ssh/authorized_keys"
    

    credit goes to this site

提交回复
热议问题