How to add my own ssh-key to a remote user by using ssh-copy-id

To allow password-less login to a remote system, you have to add your public key to the
<Home>/.ssh/authorized_keys file.

The manual way is to copy the file from your local system by scp  to the remote system
and add the content by cat <id-file> >> ~/.ssh/authorized_keys

 But a much simpler way is to use


There is no special handling necessary

ssh-copy-id root@targethost

Just after this you can
ssh root@targethost
without any password