This content has been marked as final. Show 2 replies
No need to wipe the existing configuration - simply append the public key from node A to the authorized keys file on node C. You should already have an id_rsa.pub on the A node in the user's .ssh directory. Just copy that to node C, and append the contents to the authorized_keys on node C for the user you're connecting as (don't replace the contents). Just be sure that you use the existing key and do NOT re-generate keys using ssh-keygen, as that will wipe out your existing keys and break the ssh between Node A and Node B.
That assumes the user will be the same across servers - if it's not (i.e., using "oracle" on node A and "backupguy" on node C), then you'll just need to put oracle's id_rsa.pub file from node A in the authorized_keys of backupguy on node C. In addition, with different users across nodes, you'll need to specify a user:
scp filename backupguy@nodec:/path/to/backup/files
Should be that simple!
Thank you very much Bachelder.