Forum: JRuby Net::SSH OpenSSL::PKey::DSAError

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Robert B. (Guest)
on 2009-03-04 05:32
Hi all,

I'm having this problem with a JRuby script on Linux (RHEL).

[me@myserver bin]$ jruby ssh_test.rb
`ssh_do_sign': bad sig size (OpenSSL::PKey::DSAError)
        from ssh_test.rb:4
[me@myserver bin]$ cat ssh_test.rb
require 'rubygems'
require 'net/ssh'

Net::SSH.start('otherserver', 'me', :password => "secret") do |ssh|
    puts ssh.exec!("hostname")

Does anyone know if Net::SSH is supposed to run under JRuby?

Robert B. (Guest)
on 2009-03-04 09:22
OK found out that Net:SSH 2.0.11 is broken under JRuby.  Rolled back to
Net:SSH 2.0.4 and now it works.
Robert B. (Guest)
on 2009-03-04 09:23
Forgot to add: needed to apply hacks documented here:
This topic is locked and can not be replied to.