Python: how to launch scp with pexpect without OpenSSH GUI Password Prompt on Ubuntu?

StackOverflow https://stackoverflow.com/questions/7352021

  •  28-10-2019
  •  | 
  •  

Question

I'm attempting to automate scp commands with pexpect on Ubuntu. However, I keep getting a password GUI prompt with title "OpenSSH". How can I disable this behavior and use command line prompts instead?

Was it helpful?

Solution

See the DISPLAY and SSH_ASKPASS section of man ssh-add.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top