Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the rank-math domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/u763016847/domains/golinuxhub.com/public_html/wp-includes/functions.php on line 6114
How to fix "/usr/bin/ssh-copy-id: ERROR: No identities found" - GoLinuxHub

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

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