Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • does the entire rsync command work if you run it in the shell normally (instead of in python)? Does /usr/bin/ssh-askpass exist on your system? Try installing it if not. I think that's the tool that prompts you to accept unkown host keys, so you may also need to pre-import or accept the remote host key into known_hosts
    – Cpt.Whale
    Commented Apr 5, 2023 at 16:50
  • If you only need a one-time copy, I suggest trying this with scp You can also disable host key checking with ssh -o StrictHostKeyChecking=no user@remote-host
    – M Virts
    Commented Apr 5, 2023 at 17:06
  • Using the rsync command in Terminal throws errors too. I will use the command in a Python script daily in the middle of the night to use as a backup of the folder, hence the use of ssh keys.
    – Kevin
    Commented Apr 5, 2023 at 17:44