Une Bévue wrote:
> I've migrated from CRuby to jRuby with the same code for ssh connection.
> However, within jRuby i get this error message :
> Exception in thread "AWT-EventQueue-0"
> /opt/jruby/lib/ruby/gems/1.8/gems/net-ssh-2.0.3/lib/net/ssh/transport/ke
> x/diffie_hellman_group1_sha1.rb:187:in `ssh_do_verify': unsupported
> algorithm: DSS1withDSA (OpenSSL::PKey::PKeyError)
>         from
> /opt/jruby/lib/ruby/gems/1.8/gems/net-ssh-2.0.3/lib/net/ssh/transport/ke
> x/diffie_hellman_group1_sha1.rb:187:in `verify_signature'

I assume you've installed JRuby-OpenSSL, so what's probably happening 
here is that either JRuby-OpenSSL doesn't support that algorithm or the 
encryption library it ships with doesn't support that algorithm. JOSSL 
uses BouncyCastle...so I'm checking their docs now.

- Charlie