SSH-COPY-ID(1) (NAME) ssh-copy-id - (SYNOPSIS) ssh-copy-id [-f] [-n] [-s] [-x] [-i [identity_file]] [-t target_path] [-F ssh_config] [-o ssh_option]... [-p port] [user@]hostname ssh-copy-id -h | -? (DESCRIPTION) ssh-copy-id ssh(1) ( ) . ( ) ( ssh-agent(1) ). ssh(1) . ~/.ssh/authorized_keys ( ). NetScreen set ssh pka-dsa key ... . (OPTIONS) : -i [identity_file] () identity_file ( ssh-add(1) default_ID_file). .pub . default_ID_file . / . -f : . . . -n (dry-run). () . -s SFTP: . ~/.ssh/authorized_keys sftp . . -t target_path ( .ssh/authorized_keys). -p port () . -F ssh_config, -o ssh_option ( ) ssh/sftp . ( ) ssh(1) ssh_config(5) . -x ssh-copy-id . -x . -h, -? (Usage) -i ssh-add -L . (comment) ssh-agent(1) ssh-add(1) . ssh-add(1) default_ID_file . default_ID_file : ~/.ssh/id*.pub ( ~/.ssh/*-cert.pub ). ssh-copy-id touch(1) .pub . (EXAMPLES) . () ssh-agent(1) . -c agent ssh -A (agent forwarding): user@newclient$ ssh-add user@newclient$ ssh -A old.client user@old$ ssh-add -c No ... prompt for pass-phrase ... user@old$ logoff user@newclient$ ssh someserver () : user@newclient$ ssh-copy-id -i someserver -i .pub agent . ssh-agent(1) . ssh-agent(1) . -c ssh-add(1) (agent forwarding) ProxyCommand -W ssh(1) (end-to-end) . () ssh-agent(1) . ssh proxycommand nc (: -W nc(1) ). (SEE ALSO) ssh(1), ssh-agent(1), sshd(8) (AUTHORS) Philip Hands OpenSSH 17 June 2010 SSH-COPY-ID(1)