Reputation: 57893
I'd like to call scp
from Python script. subprocess.call
doesn't work because scp
asks for password. Someone asked same question last year and the answer was to use Pexpect.
Is there some quick hack for this that doesn't involve installing Pexpect library?
I tried echo password | scp ...
and it still asks for password
Answer update:
Making key-pair got the job done, following instructions here
Upvotes: 1
Views: 978