[英]Copying a remote file from Linux to a local server using scp
So, I'm attempting to simply transfer a unix file (demo) from a server to my local computer via ssh and scp.所以,我试图通过 ssh 和 scp 将一个 unix 文件(演示)从服务器传输到我的本地计算机。 In Putty, I'm using the command as follows:
在 Putty 中,我使用如下命令:
scp hasanjee@cs.utm.utoronto.ca:~/A1/demo \desktop
this works and even downloads:这有效,甚至下载:
demo 100% 4096 885.9KB/s 00:00
I've tried multiple directories:我尝试了多个目录:
scp hasanjee@cs.utm.utoronto.ca:~/A1/demo \desktop\demo
What am I missing here?我在这里想念什么? Any ideas?
有任何想法吗? I am using Windows 10
我正在使用 Windows 10
maybe try adding a full path...也许尝试添加完整路径...
scp -P 22 hasanjee@cs.utm.utoronto.ca:~/A1/demo/somefile C:\Users\{username}\Desktop\
-p: portnumber -p:端口号
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.