0

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)?

techraf
  • 64,883
  • 27
  • 193
  • 198
flow
  • 33
  • 6

1 Answers1

0

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

Community
  • 1
  • 1
Sean _space
  • 112
  • 7
  • Windows. There is normal winrm-connection, I don't want to add ssh very-very-very much. – flow Jan 25 '17 at 15:03