My requirement: I need to find the file in particular path and upload it to s3 bucket and get the output as preassigned url to download.. here file path is default and file name is get it from user input. But I need to run the script from local server.. from local server --> bastion server ---> prod server -->> do task
How to do two ssh session using paramiko and each the file and upload it.
Help me with the script.