-
Notifications
You must be signed in to change notification settings - Fork 4
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
support for ssh control master #39
Comments
No, you are right. At the moment BatchQ is limited in the way it interacts with SSH. I am planing on extending this since it would be very useful, but my main problem is to find the time to do all the things that I plan :) If this is a feature that you desperately need, I might have some time to look in to it next week. |
We are currently experimenting with BatchQ, vistrails JobSubmission package, and LSF and need to use ssh control master for authentication, so it would be great if you had time to look into this. Also, the VisTrails JobSubmission package does not work with recent versions of BatchQ, but that is another issue. |
I just tested it and you are right, it has a bug which breaks compatibility with VisTrails. However, this has been fixed now. Note that you should use the "stable" branch. The master branch is currently being heavily redesigned and is not intended for usage at the moment. To get back to your original request I have added support for ControlMaster. It works on my local machine, but please test it and let me know whether it works for you. |
The latest stable branch loaded fine under JobSubmission of Vistrails. However, remote subshell does not work with a control master connection as evidenced by the following output: Uncaught exception: "Last login: ... user@machine:~> " Traceback (most recent call last): user@machine:~> I think this has to do with the regular expression matching just above line 69 of ssh.py. It would be more generic if we had a way to input what that expression is expected to be under the control master mode. But then again there maybe more at play as well. Thanks. |
Yes, you are right. It is because the standard prompts it looks for are "$" and "sftp>", since it has clearly logged in "Last login: Mon Nov 5 11:12:36 2012 from login3.nccs.nasa.gov". Unfortunately, I do not think that I will have the time to implement this for you tonight. However, in the meanwhile, you can modify the standard regex pattern in the constructor of the init in batchq.pipelines.shell.ssh and add ">". This should do the trick. I am still awake for a few more hours, so I will still be responsive in case this does not solve your problem. |
Hi again. If you checkout the latest version everything should work. The remote shell now has a login_expect where you can add ">". |
Thanks. Looks promising so far. On Nov 5, 2012, at 14:58, troelsfr [email protected] wrote:
|
To my knowledge, ssh connections that uses control master does not work. BatchQ tries to enter a password, although the session is already started.
The text was updated successfully, but these errors were encountered: