Im writing a script for automatic connection and command execution via internet. I want to connect to my raspberry using this script:
def establish_connection(cmd=" ssh pi@00.0.000.000", *args):
passphrase = "my_passphrase "
proc = subprocess.popen(cmd , stdout=subprocess.PIPE,stdin=subprocess.PIPE, shell=True)
# at this point "Enter passphrase for key 'C:\Users\.../id_rsa':" pops out in the therminal and im not able
# to pass that passphrase
I have tried many things but couldn't find the right answer that would work on Windows