从 Linux 到 Windows 的 scp [英] scp from Linux to Windows

查看:32
本文介绍了从 Linux 到 Windows 的 scp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 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

推荐答案

这个对我有用.

scp /home/ubuntu/myfile username@IP_of_windows_machine:/C:/Users/Anshul/Desktop 

这篇关于从 Linux 到 Windows 的 scp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆