我想使用pscp
(来自 PuTTY)将一些文件从远程 Linux 系统复制到我的 Windows PC。我写了一个小脚本,它应该复制.png
我服务器上一个目录中的所有文件:
pscp -unsafe root@169.60.147.[redacted]:/root/pytorch-CycleGAN-and-pix2pix/results/summer2winter_yosemite_cyclegan/test_latest/images/*.png C:\files\tests\images
我正在使用该-unsafe
选项,因为每当我运行此命令时,都会得到以下输出:
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
但是,当我使用该-unsafe
选项时,该命令仍会输出相同的结果。这是我彻底阅读的一些文档pscp
,但无济于事。有人有想法么?