简体   繁体   English

在Windows计算机上使用SSH启动ipython集群

[英]Start ipython cluster using ssh on windows machine

I have a problem setting up a ipython cluster on a Windows server and connecting to this ipcluster using a ssh connection. 我在Windows服务器上设置ipython群集并使用ssh连接连接到此ipcluster时遇到问题。 I tried following the tutorial on https://ipython.org/ipython/doc/dev/parallel/parallel_process.html#ssh , but I have problems to understand what the options mean exactly and what parameters are to use exactly... 我尝试按照https://ipython.org/ipython/doc/dev/parallel/parallel_process.html#ssh上的教程进行操作,但是我在理解选项的含义和确切使用的参数时遇到了问题。

Could anyone help a total noob to set up an ipcluster? 谁能帮助一个新手设置ipcluster? (Let's say the remote machine has ip 192.168.0.1 and the local machine has 192.168.0.2 ) (假设远程计算机的IP地址为192.168.0.1 ,本地计算机的IP地址为192.168.0.2

If you scroll roughly to the middle of the page https://ipython.org/ipython-doc/dev/parallel/parallel_process.html#ssh you will find this: 如果您大致滚动到页面的中间https://ipython.org/ipython-doc/dev/parallel/parallel_process.html#ssh ,则会发现以下内容:

Current limitations of the SSH mode of ipcluster are: ipcluster SSH模式的当前限制是:

  • Untested and unsupported on Windows. 未经测试,并且在Windows上不受支持。 Would require a working ssh on Windows. 在Windows上将需要有效的ssh。 Also, we are using shell scripts to setup and execute commands on remote hosts. 另外,我们使用Shell脚本在远程主机上设置和执行命令。

That means, there is no easy way to build an ipcluster with ssh connection on windows (if it works at all). 这意味着,没有简单的方法可以在Windows上使用ssh连接构建ipcluster(如果可以的话)。

Do you really need to connect the machines with an ssh connection? 您是否真的需要通过ssh连接来连接机器? I guess it's possible with a ssh client on each windows machine, but if you are in a trusted local network you can also decide not to use the loopback interface and just expose the ports... Sure you can start controller and engine separately! 我想每台Windows机器上都有一个ssh客户端是可能的,但是如果您在受信任的本地网络中,则还可以决定不使用回送接口,而只暴露端口...当然,您可以分别启动控制器和引擎! For further examples about ports (if you have problems with firewalls) see also How to setup ssh tunnel for ipython cluster (ipcluster) 有关端口的更多示例(如果您在防火墙方面有问题),另请参阅如何为ipython群集设置ssh隧道(ipcluster)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM