You are here: 7 Configuring Data Management > SCP Setup > Copying Public SSH Key to Each Destination Host

7.3 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 

© 2016 Adaptive Computing