Page 1 of 1

Passwordless SSH from PROD to DEV Clusters

Posted: Fri Mar 10, 2017 10:48 pm
by darinbob
Hi -

I want to be able to use the vbr -t replicate task to be able to replicate objects from prod to a new DEV/QA cluster. Potentially - eventually - the opposite direction as well.

However - I need to configure SSH from the source to the target cluster. Each cluster is already configured to passwordless SSH between the nodes of each individual cluster. What I'm struggling with is configuring the DEV cluster so that it can accept passwordless SSH from PROD.

Does this require multiple .SSH directories? Can I stash more than 1 set of key pairs in the existing .SSH directory on DEV ?
SSH.PNG
SSH.PNG (50.24 KiB) Viewed 707 times
Thanks,
Darin

Re: Passwordless SSH from PROD to DEV Clusters

Posted: Mon Mar 13, 2017 12:39 pm
by JimKnicely
Hi,

You should be able to simply copy the public key from your prod server to the dev serer using ssh-copy-id:

ssh-copy-id -i ~/.ssh/id_rsa.pub dev_sever

This will append the prod key to the dev’s .ssh/authorized_key file.