-
Notifications
You must be signed in to change notification settings - Fork 80
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
NullPointerException in PKeyEC.java when calling Net::SSH.start #105
Comments
@marshalium mind sharing exactly what you did to hack around net/ssh? I tried this which didn't seem to work:
|
Interesting. What I did was similar, but I modified the objects directly instead of changing the constant. This works for me:
|
@steveh @marshalium is there any conclusion for this issue? I am facing the same on Jruby 9.1.6.0 |
no conclusion - EC support isn't finished as noted on the original issue: jruby/jruby#4129 (comment) |
@aditya-sanghi in case it helps, I faced this with JRuby 9.1.7.0 and can confirm the tip provided above by @marshalium helped me deploy with Capistrano (which otherwise fails). |
Does any update on this, since I am still facing this issue. Tried @marshalium solution but no luck. |
@rahul100885 just a bit of feedback in case it helps: the solution you quoted works at least for me today with net-ssh 5.2.0 and jruby 9.2.5.0 (via net/sftp). I haven't tested with more recent version of jruby and net-ssh yet, though! |
@thbar I tried with net-ssh 5.2.0 with jruby-9.1.17.0 and jruby-9.2.11.1 but no luck. Trying to install jruby 9.2.5.0 with rbenv but facing issue in download. |
I've got this in my queue and will hopefully look into it this week. |
I found that this issue doesn't occur with jruby 9.2.13.0 when using Net-SSH v5.0.2. Any version after that (v5.1.0) gets the |
I assume the newer net-ssh is just doing additional calls that are not properly supported. This is still an issue, but not sure when we can get someone to work on it... |
ctualy, with Net::SSH 7.0.1 the error reported is
|
last error ^^^ was resolved in 0.14.3 and is not related to the original report. the reported issue might still persist, if I got it right historically it's been due this line which, still, happens if the |
with 21c93d8 (in 0.14.4) I am calling this one fixes |
Moved from the jruby issue tracker: jruby/jruby/issues/4129
Environment
Expected Behavior
Net::SSH.start
should be able connect to an SSH server that supports ecdsa-sha2-nistp256 without raising any errors. This worked in 9.1.2.0, but I believe it was because that class of algorithms was not supported (I think because OpenSSL::PKey::EC did not exist at all).Actual Behavior
If I hack net-ssh to exclude all the ecd* algorithms from Net::SSH::Transport::Algorithms::ALGORITHMS and Net::SSH::KnownHosts::SUPPORTED_TYPE I am able to connect to the same server without error.
Also using MRI 2.2.4 and the same version of net-ssh I am able to connect to the same server without error.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: