pscp中的 "忽略潜在的危险的服务器提供的文件名"。

问题描述 投票:0回答:1

我想把远程Linux系统中的一些文件复制到我的Windows PC上,使用的是 pscp (来自PuTTY)。我写了一个小脚本,应该把所有的 .png 文件在我的服务器上的一个目录中。

pscp -unsafe [email protected].[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 我仔细阅读了一遍,但无济于事。谁有什么办法?

linux ftp remote-access putty remote-server
1个回答
0
投票

-unsafe 对这个没有帮助。

问题是你的文件名包含了冒号。冒号在Windows文件名中是不允许的。

© www.soinside.com 2019 - 2024. All rights reserved.