title: "ignoring potentially dangerous server-supplied filename" in pscp
body: <p>I want to copy some file from a remote Linux system to my Windows PC using <code>pscp</code> (from PuTTY). I wrote a small script that should copy all <code>.png</code> files in a directory on my server:</p>
  
  <pre><code>pscp -unsafe root@169.60.147.[redacted]:/root/pytorch-CycleGAN-and-pix2pix/results/summer2winter_yosemite_cyclegan/test_latest/images/*.png C:\files\tests\images
  </code></pre>
  
  <p>I'm using the <code>-unsafe</code> option because whenever I run this command, I get this output:</p>
  
  <pre><code>ignoring potentially dangerous server-supplied filename '2011-05-29 10:20:21_rec_A.png'
  ignoring potentially dangerous server-supplied filename '2011-07-06 16:55:20_real_B.png'
  ..
  ignoring potentially dangerous server-supplied filename '2011-08-30 23:13:10_real_A.png'
  pscp: wildcard '*.png' matched no files
  </code></pre>
  
  <p>However, when I use the <code>-unsafe</code> option the command will still output those same results. <a href="https://the.earth.li/~sgtatham/putty/latest/htmldoc/Chapter5.html" rel="nofollow noreferrer">Here</a> is some documentation on <code>pscp</code> that I read over thoroughly, to no avail. Anyone have any ideas? </p>