如何使用 Putty 会话将文件从远程服务器复制到本地 Windows 系统?
One of the putty tools is pscp.exe; it will allow you to copy files from your remote host.
It worked using PSCP. Instructions:
set PATH=<path to the pscp.exe file>
pscp
use the following command to copy file form remote server to the local system
pscp [options] [user@]host:source target
So to copy the file /etc/hosts from the server example.com as user fred to the file c:\temp\example-hosts.txt, you would type:
/etc/hosts
example.com
fred
c:\temp\example-hosts.txt
pscp fred@example.com:/etc/hosts c:\temp\example-hosts.txt