用于将文件夹从本地计算机复制到远程服务器的 scp 命令语法

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5946529/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-04 00:52:30  来源:igfitidea点击:

Scp command syntax for copying a folder from local machine to a remote server

linuxscpputty

提问by Warrior

I am using putty for copying files from local machine to remote server.My folder is in C:/sitecan any one give syntax for copying folder from C:/siteto remote server using scp

我正在使用腻子将文件从本地机器C:/site复制C:/site到远程服务器。我的文件夹在任何人都可以使用任何人提供将文件夹复制到远程服务器的语法中scp

采纳答案by Warrior

In stall PuTTY in our system and set the environment variable PATH Pointing to putty path. open the command prompt and move to putty folder. Using PSCP command

在我们的系统中安装 PuTTY 并设置环境变量 PATH 指向 putty 路径。打开命令提示符并移动到 putty 文件夹。使用 PSCP 命令

Please check this

请检查这个

回答by Kiril Kirov

scp -r C:/site user@server_ip:path

pathis the place, where sitewill be copied into the remote server

pathsite将被复制到远程服务器的地方



EDIT: As I said in my comment, try pscp, as you want to use scpusing PuTTY.

编辑:正如我在评论中所说, try pscp,因为你想使用scpusing PuTTY

The other option is WinSCP

另一个选项是WinSCP