简体   繁体   中英

How to copy file from remote Windows to local Ubuntu?

I need to copy a file automatically, by Python script.

On remote Windows I have WinRM connection.

So, I can open session like https://github.com/diyan/pywinrm

I need to copy from path C:\\1.txt to path /home/test/1.txt .

How can I do it (without Ansible)?

this may be exactly what you're looking for, SCP over Python script: How to copy a file to a remote server in Python using SCP or SSH?

SCP can copy from Windows -> Linux vice versa

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM