title: How to get certain types of files from one server to another in Python?
body: <p>Suppose I have one server called <code>server 1</code>. On this server there's a directory called <code>dir1</code>. <code>dir1</code> has 3 files in them called <code>neh_iu.dat_1</code>, <code>neh_hj.dat_2</code>, <code>jen_ak.dat_1</code>.</p>
  
  <p>I need to get ONLY the 'neh' files from <code>server 1</code> to another server called <code>server 2</code>. <code>server 2</code> is where I will be performing certain modifications on these files.</p>
  
  <p>How do I get ONLY the 'neh' files in Python? I'm new to python. I'm aware of a module called paramiko which allows for file transfers but assuming that there are millions of 'neh' files in <code>dir1</code>, and that I don't know the full names of all of them, how can I get an automated process for it in Python? </p>