如何在 PuTTY 中将文件从远程服务器目录下载到本地机器?

How to download file(s) from remote server directory to local machine in PuTTY?

如何在 PuTTY 中将文件从远程服务器目录下载到本地计算机?

我得到了从本地机器将文件插入远程目录的命令。但它对我不起作用,尽管没有错误消息。

pscp c:\documents\foo.txt fred@example.com:/tmp/foo

(问题可能更适合超级用户)

您的参数顺序错误。请参考文档:
https://the.earth.li/~sgtatham/putty/0.70/htmldoc/Chapter5.html#pscp

下载,您需要:

pscp [options] [user@]host:source target

你有的是相反的,它是为了做一个上传