uqfoundation / pathos

parallel graph management and execution in heterogeneous computing
http://pathos.rtfd.io
Other
1.38k stars 89 forks source link

Request: Allow specifying keyfile for ssh tunnel #210

Open scottshambaugh opened 3 years ago

scottshambaugh commented 3 years ago

It would be nice to not have to have ssh-agent set up and running in order to securely connect to a server when setting up a tunnel.

In the _connect method of https://github.com/uqfoundation/pathos/blob/master/pathos/secure/tunnel.py, this would look something like changing the options line to this, with some better default handling of course. options = '-q -N -L %d:%s:%d -i %s' % (localport, remotehost, remoteport, keyfile)