I need to copy many files created in a python script from local to a remote server. On the command prompt I use this line :
"pscp c:\users\myaccount\documents\foler\file.txt name@server:/home/folder".
But this requires a password that I can enter on the command prompt.
On my python script I "import os" then :
cmd = "pscp local_path server_path"
os.system(cmd)
But I don't know how to enter the password in my script.
Thanks