Timeline for Using rsync and ssh inside python script to specific folder
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 5, 2023 at 17:44 | comment | added | Kevin | 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. | |
Apr 5, 2023 at 17:06 | comment | added | M Virts |
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
|
|
Apr 5, 2023 at 16:50 | comment | added | Cpt.Whale |
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
|
|
Apr 5, 2023 at 16:19 | history | asked | Kevin | CC BY-SA 4.0 |