简体   繁体   English

将远程服务器连接到 spyder 以运行 Python 代码

[英]Connect remote server to spyder for running Python Code

Here is what I am trying to do.这就是我想要做的。 I have a Windows VM and another Linux VM which is used as server.我有一个 Windows VM 和另一个用作服务器的 Linux VM。 I have Spyder installed on my Windows VM and would like to run my Python code in Spyder on remote Linux server.我在 Windows VM 上安装了 Spyder,并希望在远程 Linux 服务器上的 Spyder 中运行我的 Python 代码。

I did try using option in Spyder called "Connect to remote kernel" but it did not work and I am getting error "Could not open ssh tunnel ; Paramiko not available".我确实尝试在 Spyder 中使用名为“连接到远程内核”的选项,但它不起作用,并且出现错误“无法打开 ssh 隧道;Paramiko 不可用”。 I was using username@servername:22 for making ssh connection.我使用 username@servername:22 进行 ssh 连接。 Needless to say, I am able to ssh the machine using putty but not using Spyder.不用说,我可以使用 putty ssh 机器,但不能使用 Spyder。 Any ideas how should I fix this?任何想法我应该如何解决这个问题?

I found another way to make a connection to an external server, here is the link explaining step by step.我找到了另一种连接外部服务器的方法,这里是一步一步解释的链接

Basically, you have to connect your client PC to the server through a PuTTY SSH tunnel, it will allow to redirect the client ports to the correct ipython kernel server ports.基本上,您必须通过 PuTTY SSH 隧道将客户端 PC 连接到服务器,它将允许将客户端端口重定向到正确的 ipython 内核服务器端口。

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

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