New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Control-C kills port forwarding #2520
Comments
Can you test #2526? |
Commit 6cf3f27eec8a5c8ecbfae014311cc6e315b2cbc1 gives me this, but it's not its fault as the master branch at afa2e6c shows the same problem.
|
that suggests that you have conflicting versions of IPython on the controller/client. Can you make sure all of controller/engine/client are running the same version of IPython? |
I apologise, I didn't know that was such hard requirement, everything is now running 6cf3f27eec8a5c8ecbfae014311cc6e315b2cbc1 but it doesn't seem to fix the problem for me ''' KeyboardInterrupt In [4]: SIGINT: Port forwarding stopped cleanly |
Cn you give more platform details (OS Version / distro, Python version, ssh versions, terminal, etc.)? Because I cannot reproduce this. |
Hi, sorry for taking so long to get back to you. I tested everything again and I confirm that the patch does not do the job for me. Controller is an Red Hat Enterprise Linux Server release 5.8, python 2.7.3 (compiled myself), OpenSSH_4.3p2. Client is running openSUSE 12.2, Python 2.7.3, OpenSSH_6.0p1. On both is running iPython at commit 6cf3f27. I also need to say that using openssh I can't get the client to establish a connection with the controller. I'm launching the controller with --ssh option, the Client constructor launches a connection but gets stuck (I seems to have something to do with the Client waiting for a password prompt that is not appearing because I am using ssh keys to get in). So I use paramiko (1.8.0) to connect (and the connection works well, I tested). Thanks |
Hm, weird. I only ever use it with passwordless SSH key login, so that definitely works in some cases. I wonder what could be going wrong.
Ah, that's important! I only applied the fix to OpenSSH. I will add setpgrp to paramiko as well. |
Can you test #2526 again? I am able to reproduce your bug now, and that patch fixes it for me. |
Works for me. Thanks. |
prevents ^C from being passed along to children, bringing them down closes #2520
closed by #2526 |
It seems that pressing Control-C at the prompt propagates to ssh, killing the tunnels.
The text was updated successfully, but these errors were encountered: