Thursday, February 19, 2015

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

Issue:

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

the main issue is that the identity is no added

Check:

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


Solution:

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@10.22.56.146
Password:
Now try logging into the machine, with "ssh 'patelm@10.22.56.146'", and check in:
  ~/.ssh/authorized_keys
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

ssh-keygen

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