By scholastik
I posted my question about SSH networking here: https://www.digitalocean.com/community/tutorials/how-to-copy-files-with-rsync-over-ssh?comment=58880
I will repeat it: I have access from my pc to both of my droplets with ssh and putty. At my pc I have the public and the private (.ppk) ssh keys. This works fine.
Now I want both droplets to rsync in private network. I assueme I can still use the public and private keys I also use on pc in putty. But where do I put public and private key, so the first droplet knows that he can use this ssh keys to connect to droplet2 ?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
The purpose of rysnc would be to ensure that the specified files and directories on Droplet A are in sync with Droplet B and vice versa. If that’s the case, you should be able to simply read the file on the server that you’re running the Python script on without having to go over the network to do it.
As a very basic example, if we have a file called demo.txt and it exists on Droplet A, and you’re using rsync to duplicate that file over to Droplet B, then you should be able to read that file on either using a Python script without having to go over the network.
Any changes you make on either Droplet A or Droplet B could then be synced using rysnc.
…
If you need to connect over SSH from your Python script, I’d take a look at the following. There are a few demo scripts that you can use to get things setup.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.