I had setup passwordless ssh (keygen) to access my remote workspace from my personal laptop. On the remote server, I do use an account with a password to connect. Setting up public/private key authentication allowed me to connect without having to type this password.
The Python script I am running uses subprocess.Popen()
to ssh into this remote workspace again. However, it is not a passwordless ssh during this. I have checked my permissions and have tried to delete and recreate the keys, yet this still happens.
Below is the relevant piece of Python code.
subprocess.Popen(['ssh', machine_addr, 'cd ' + workspace + \
'; python dispynode.py --serve 1 --clean --dest_path_prefix dispytmp_' + str(i)])
ssh-agent
on the client to manage the SSH keys? If so, are you executing the Python script in an environment where theSSH_AUTH_SOCK
environment variable is available? Are you executing your Python script as yourself or as another user?