I need get the list of files from a remote host directory, running the code in my local machine.
Is something like os.listdir() at remote host machine, NOT is os.lisdir() in the local machine that runs the python code.
In bash this command works
ssh user@host "find /remote/path/ -name "pattern*" -mmin -15" > /local/path/last_files.txt