使用PuTTY软件
安装路径下的pscp软件,添加此路径到环境变量
接受文件 To receive (a) file(s) from a remote server:
pscp [options] [user@]host:source target*
例如:从客户机(Ubuntu)名:example.com,用户名:fred 文件路径: /etc/hosts
主机路径:c:\temp\example-hosts.txt
`pscp fred@example.com:/etc/hosts c:\temp\example-hosts.txt`
发送文件类似,To send (a) file(s) to a remote server:
pscp [options] source [source...] [user@]host:target
So to copy the local file c:\documents\foo.txt to the server example.com as user fred to the file /tmp/foo you would type:
pscp c:\documents\foo.txt fred@example.com:/tmp/foo
官方文档
https://the.earth.li/~sgtatham/putty/0.72/htmldoc/Chapter5.html#pscp
本文介绍如何利用PuTTY的pscp工具进行远程文件传输,包括将文件从远程服务器接收至本地及从本地发送至远程服务器的方法。通过具体示例展示了pscp命令的使用,如从客户机(Ubuntu)接收/etc/hosts文件至本地C盘temp目录下,以及将本地文件c:documentsfoo.txt发送至服务器example.com的/tmp/目录。
2952

被折叠的 条评论
为什么被折叠?



