I'm trying to automate the process of transferring files from my remote server to my local directory using Python. I know of libraries like pysftp which are popular, but as far as I can tell these libraries require connections to be initiated from the local side (i.e. from a script that lives on the local machine). Is there a way to transfer files from a script that lives on the remote machine instead?
Thanks in advance.