-
Notifications
You must be signed in to change notification settings - Fork 12
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
Handle missing SSH key error #69
Conversation
Is there an issue ticket for the "missing ssh key error"? Is it an easy error to reproduce? |
I didn't open a ticket :( but this is in part one of the issues we noticed when helping Cecile. You may recall that she didn't have the SSH key pair set up. The existing If you want to reproduce the error on your VM, try running the latest version of jupyter-forward on it without the SSH key pair, and let me know what you get. |
This is the part that confused me when we were talking to Cecile as well - if I use |
Okay, the good news is that if I remove my
The bad news is that this branch doesn't fix it:
|
@mnlevy1981, can you try again with this branch? I removed the pass and just raises the exception as a debugging process. What do you get? |
With 101edf5:
If I go back to
So I think the problem is in the |
When loc_transport.auth_interactive_dumb() returns an exception (which was happening on the CGD machines when a user did not set up sshkeys), fallback to loc_transport.auth_password() instead. I don't fully understand why auth_interactive_dumb() was failing on the CGD machines, so I don't know if this is a general solution or if I got lucky that it works on the CGD machines but future machines may reject both auth_interactive_dumb() and auth_password()... hopefully it's the former.
14b3391 is sufficient for me to use I'll admit that I don't really understand why it works, so I'm not confident that it is the best way to fix the problem. (I also don't really understand why the error occurs in the first place.) I've opened a ticket with the CGD help desk, hoping to figure out if the ssh server is configured differently on andre than, say, casper... knowing what is causing the problem would probably help us figure out if this is the proper fix. But, lacking that information, at least we have something that works :) @andersy005 I'll leave this in its current state for you to look at on Monday unless the feedback I get from CGD helps identify a better solution. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your help with this, @mnlevy1981! I am going to keep this open until you receive a response from CGD folks.
I did hear back from CGD (I think the emails were from @jrya7 though I'm pretty bad at connecting email addresses and github ids). I cut out a paragraph and a parenthetical aside from his reply, but the key bits are:
So I think we're good to merge this in. |
Thank you! |
No description provided.