Error:
# ssh-copy-id root@192.168.1.11
/usr/bin/ssh-copy-id: ERROR: No identities found
Solution:
You will have to manually define the path of the public key using -i switch as shown below
# ssh-copy-id -i .ssh/id_rsa.pub 192.168.1.11
root@192.168.1.11's password:
Now try logging into the machine, with "ssh '192.168.1.11'", and check in:
.ssh/authorized_keys
to make sure we haven't added extra keys that you weren't expecting.
That did the trick.
In my another article I have shared the steps to configure SSH port forwarding and tunnelling in Linux
Related Articles
How to create password less ssh connection for multiple non-root users
Iptables rules to allow/block ssh incoming/outgoing connection in Linux
Putty session disconnects when idle
Hi Deepak
i have tried your trick above but not working in my ubuntu 12.04.1 kernel 3.2.0-29-generic pae
There is still /usb/bin/ssh-copy-id: ERROR: No Identities found
Hi first use below command on source server
=====
ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
========
After that try to ssh-copy-id …should works.
Hi Amar,
Thanks for assisting. I have all the folder where the keys are saved correct. I can go into the ,ssh folder as well but no luck for me too. I am following my lectures but no luck.
Tested working fine