1SSH-COPY-ID(1) General Commands Manual SSH-COPY-ID(1)
2
3
4
6 ssh-copy-id - install your public key in a remote machine's autho‐
7 rized_keys
8
10 ssh-copy-id [-i [identity_file]] [user@]machine
11
13 ssh-copy-id is a script that uses ssh to log into a remote machine
14 (presumably using a login password, so password authentication should
15 be enabled, unless you've done some clever use of multiple identities)
16 It also changes the permissions of the remote user's home, ~/.ssh, and
17 ~/.ssh/authorized_keys to remove group writability (which would other‐
18 wise prevent you from logging in, if the remote sshd has StrictModes
19 set in its configuration). If the -i option is given then the identity
20 file (defaults to ~/.ssh/id_rsa.pub) is used, regardless of whether
21 there are any keys in your ssh-agent. Otherwise, if this: ssh-
22 add -L provides any output, it uses that in preference to the identity
23 file. If the -i option is used, or the ssh-add produced no output,
24 then it uses the contents of the identity file. Once it has one or
25 more fingerprints (by whatever means) it uses ssh to append them to
26 ~/.ssh/authorized_keys on the remote machine (creating the file, and
27 directory, if necessary)
28
30 ssh(1), ssh-agent(1), sshd(8)
31
32
33
34OpenSSH 14 November 1999 SSH-COPY-ID(1)