I read a lot of answers to questions very similar to this one, but I couldn't find something that really fits my problem. Here's the situation. I have a machine whose address is "machine1@address", and from this one I reach "machine2@different_address". Now, I have to send/get files to/from machine2 directly from/on my computer, because I don't want to occupy memory "permanently" on machine1.
My goal is to automate this process by writing a Python script. So, the best solution would be to avoid to open (I don't really know how to call it, I hope you'll understand) the 'main page' of machine1, since the Python script would stop running until I close it (at least, this is what happens when I simply use ssh).
Thank you!