从Linux到Windows的scp [英] scp from Linux to Windows
问题描述
我正在Windows计算机上运行腻子客户端,以成功连接到Linux机器.现在,我希望能够从Linux计算机上的本地计算机上的路径/home/ubuntu/myfile
下将文件复制到C:/Users/Anshul/Desktop
. Windows计算机上的用户为anshul
.我在油灰上给出以下命令,但是它不起作用:
I am running a putty client on a Windows machine to connect successfully to a Linux box. Now I want to be able to copy a file from the Linux machine under the path /home/ubuntu/myfile
to C:/Users/Anshul/Desktop
on my local computer. The user at the Windows machine is anshul
. I am giving the following command on putty but it is not working:
scp /home/ubuntu/myfile ip_address_of_windows_machine:C:/Users/Anshul/Desktop
我认为Windows计算机的路径错误.请帮忙,因为我已经在很多论坛上投入了精力,但是似乎没有一个论坛为Windows服务器提供正确的路径.不要建议其他选项,例如WinScp
I think the path for the Windows machine is wrong. Please help as I have banged my head on a large number of forums but none seem to give correct path for Windows server. Don't suggest alternate options like WinScp
推荐答案
从
Download pscp
from Putty download page, then use it from Windows machine CMD like this:
pscp username_linux_machine@ip_of_linux_machine:/home/ubuntu/myfile.ext C:\Users\Name\Downloads
它将询问您有关Linux机器的用户名密码,然后为您进行复制.
It will ask you about the username password of Linux machine, then do the copy for you.
这篇关于从Linux到Windows的scp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!