How can I automate backup using SFTP on cluster nodes?
Hi!
I´m trying to automate backup to a remote host using SFTP.
I´ve generated keys uysing ssh-keygen and it works from one node.
Now, I want to do the same from the second host of the HA cluster.
I don´t know if I can just copy both private and public key to the second node or if I have to generate keys on the second node again. Could somebody help me please?
Also, I've tried to rename the keys from id_rsa to a more significant name but then the sftp doesn´t work. Why is it? Does it reference the original name somewhere?
How should I generate the keys with a significant name to the same folder /root/.ssh? Would it be better to use the default name id_rsa?
Thank you very much.
I have understood how it works. I thought that I had to put the private key file name in the textbox "Copy/Paste the SSH private key to be used for passwordless authentication:"
But, I have to put the content of the private key. So there´s no need to copy private keys between nodes.
Now, it works fine!.
Thanks.