title: How I can list files from REMOTE HOST directory using Python?
body: <p>I need get the list of files from a <strong>remote host directory</strong>, running the code in my local machine.</p>
  
  <p>Is something like <code>os.listdir()</code> at <strong>remote host machine</strong>, NOT is <code>os.lisdir()</code> in the local machine that runs the python code. </p>
  
  <p>In bash this command works
  <code>ssh user@host "find /remote/path/ -name "pattern*" -mmin -15" &gt; /local/path/last_files.txt</code></p>