[IPython-dev] Specifying known_hosts file for Client

zhangmarvin zhangmarvin95 at gmail.com
Wed Apr 9 18:07:25 EDT 2014


Hi,

I've written a script to start an IPython cluster over Google Compute Engine
(GCE), and I've run into a bit of an unfortunate circumstance.

Since I'm working over many instances, I'm using SSH to allow the instances
to communicate to the master node, and vice versa. However, there seems to
be no way, in the IPython.parallel.Client class constructor, to specify
which known_hosts file to use. This causes some problems over GCE.

In GCE, the SSH commands default to 'UserKnownHostsFile=/dev/null', since
GCE recycles IP addresses so writing the instance IP's to the known_hosts
file can cause problems very quickly (e.g. man-in-the-middle attack
warnings). However, IPython.parallel.Client can't seem to deal with that,
and so I've had to alter the ssh command to write to the known_hosts file,
and then afterward do some cleanup to erase those IP's from known_hosts.

I was wondering if anyone can give me some insight as to how to deal with
this, and if there's a better way to handle this issue.

Thank you!

Marvin



--
View this message in context: http://python.6.x6.nabble.com/Specifying-known-hosts-file-for-Client-tp5053069.html
Sent from the IPython - Development mailing list archive at Nabble.com.



More information about the IPython-dev mailing list