Website Scripts And Cloud Tutorials

/usr/bin/ssh-copy-id: ERROR: No identities found [Solved]


Dec 4, 2013 ,
Click to rate this tutorial!
[Total: 0 Average: 0]

While using ssh-copy-id command sometimes you should be getting an error

/usr/bin/ssh-copy-id: ERROR: No identities found

This is because either you the didnt got created in the path /home/USERID/.ssh/ or incorrect permission. Delete the .ssh directory and try recreating it again.

But if everything looks good and still you are seeing this error. Then the best way to find that out is

Issue command, in my case the script is residing in /usr/bin/ssh-copy-id

which ssh-copy-id
more /usr/bin/ssh-copy-id

Find out what the variable ID_FILE is referring to. It will be sometimes referred as instead of Then please change your script to call The other option is before issuing ssh-copy-id command, Copy to then run ssh-copy-id. This should fix the issue.

cp -p
ssh-copy-id <SOMEID>@<TARGET_SERVER>

This is one of the best working solution you can find on the internet.

Click to rate this tutorial!
[Total: 0 Average: 0]

Leave a Reply

Your email address will not be published.