6.0 Configuring data management > 6.1 SCP setup > 6.1.2 Copying public SSH key to each destination host

6.1.2 Copying public SSH key to each destination host

Transfer public key to each destination host as the transfer user:

Easy key copy:

ssh-copy-id [-i [identity_file]] [user@]machine

Manual steps to copy keys:

> scp ~/.ssh/id_rsa.pub destHost:~ (enter password)

Create an authorized_keys file on each destination host:

> ssh destHost (enter password)

> cat id_rsa.pub >> .ssh/authorized_keys

If the .ssh directory does not exist, create it with 700 privileges (mkdir .ssh; chmod 700 .ssh):

> chmod 700 .ssh/authorized_keys

Related topics