![](/img/trans.png)
[英]How ansible copy file from remote windows to remote linux without local copy and ssh install in windows
[英]How to copy file from remote Windows to local Ubuntu?
我需要通过Python脚本自动复制文件。
在远程Windows上,我具有WinRM连接。
因此,我可以像https://github.com/diyan/pywinrm这样打开会话
我需要从路径C:\\1.txt
复制到路径/home/test/1.txt
。
我该如何做(没有Ansible)?
这可能正是您要查找的,基于Python的SCP脚本: 如何使用SCP或SSH将文件复制到Python中的远程服务器?
SCP可以从Windows复制->反之亦然
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.