1

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

Community
  • 1
  • 1
Yaroslav Bulatov
  • 57,332
  • 22
  • 139
  • 197

1 Answers1

2

Given that you don't want to use Pexpect, why not use a key pair?

Sasha
  • 326
  • 1
  • 3