Search This Blog

Thursday, February 19, 2015

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


patelm@patelm-l ~
$ ssh-copy-id  patelm@
/usr/bin/ssh-copy-id: ERROR: No identities found

the main issue is that the identity is no added


patelm@patelm-l ~
$ ssh-add.exe
Could not open a connection to your authentication agent.


patelm@patelm-l ~
$ eval `ssh-agent`
Agent pid 8572

patelm@patelm-l ~
$ ssh-add.exe
Identity added: /home/patelm/.ssh/id_rsa (/home/patelm/.ssh/id_rsa)

Now you shall be able to

patelm@patelm-l ~
$ ssh-copy-id  patelm@
Now try logging into the machine, with "ssh 'patelm@'", and check in:
to make sure we haven't added extra keys that you weren't expecting.

your password less login shall work !

1 comment:

Mihir said...

else just execute


that will fix this issue ( by generating missing ssh files. )