You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to connect an IPython qtconsole on Windows to an IPython kernel on a remote linux box through ssh2.
I made the following changes in ipython_qtconsole_config.py:
#### Path to the ssh key to use for logging in to the ssh server.importosc.IPythonQtConsoleApp.sshkey=os.path.expanduser('~')+'\\.ssh\\id_dsa'
When I run ipython qtconsole --IPythonQtConsoleApp.sshserver='user@hostname' --existing kernel-21449.json
I receive:
[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 248, in tunnel_to_kernel
password = getpass("SSH Password for %s: "%sshserver)
File "C:\Python27\lib\getpass.py", line 95, in win_getpass
msvcrt.putch(c)
TypeError: must be char, not unicode
For now, I edited IPython/lib/kernel.py:248 as a temporary workaround in the following way:
password=getpass("SSH Password for %s: "%sshserver.encode('ascii','ignore'))
The text was updated successfully, but these errors were encountered:
Setup
Win 7 x64
ipython==0.12.1
paramiko==1.7.7.2
pyzmq==2.2.0
Issue
I want to connect an IPython qtconsole on Windows to an IPython kernel on a remote linux box through ssh2.
I made the following changes in
ipython_qtconsole_config.py
:When I run
ipython qtconsole --IPythonQtConsoleApp.sshserver='user@hostname' --existing kernel-21449.json
I receive:
For now, I edited IPython/lib/kernel.py:248 as a temporary workaround in the following way:
The text was updated successfully, but these errors were encountered: