ssh-copy-id [-i [identity_file]]
is a script that uses ssh to log into a remote machine (presumably
using a login password, so password authentication should be enabled,
unless you’ve done some clever use of multiple identities)
It also changes the permissions of the remote user’s home,
to remove group writability (which would otherwise prevent you from logging in, if the remote
set in its configuration).
option is given then the identity file (defaults to
is used, regardless of whether there are any keys in your
Otherwise, if this:
provides any output, it uses that in preference to the identity file.
option is used, or the
produced no output, then it uses the contents of the identity
file. Once it has one or more fingerprints (by whatever means) it
uses ssh to append them to