我想在 Linux 机器上运行 iPython 内核,然后在 Windows 机器上远程连接到它。ipython 内核工作正常,我可以在 Linux 机器上将 qtconsole 本地连接到它。在 Windows 上,我安装了 ipython 和 paramiko 作为它的 ssh 客户端。我在 Windows 7 x64 cmd 上运行以下命令
D:\...\.ssh>ipython qtconsole --IPythonConsoleApp.sshserver='user@hostname:22' --IPythonConsoleApp.sshkey='myKey' --IPythonConsoleApp.password='1234'
我收到以下错误:
[IPythonQtConsoleApp] Could not setup tunnels
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\IPython\frontend\consoleapp.py", line 289, in init_ssh
newports = tunnel_to_kernel(info, self.sshserver, self.sshkey)
File "C:\Python27\lib\site-packages\IPython\lib\kernel.py", line 245, in tunnel_to_kernel
if tunnel.try_passwordless_ssh(sshserver, sshkey):
File "C:\Python27\lib\site-packages\IPython\external\ssh\tunnel.py", line 87, in try_passwordless_ssh
return f(server, keyfile)
File "C:\Python27\lib\site-packages\IPython\external\ssh\tunnel.py", line 123, in _try_passwordless_paramiko
look_for_keys=True)
File "C:\Python27\lib\site-packages\paramiko\client.py", line 332, in connect
self._auth(username, password, pkey, key_filenames, allow_agent, look_for_keys)
File "C:\Python27\lib\site-packages\paramiko\client.py", line 493, in _auth
raise saved_exception
SSHException: not a valid DSA private key file
密钥甚至是用 RSA 创建的。
有没有人成功地从 Windows 机器远程连接到远程 ipython 内核?