From: unbewusst.sein@... (=?ISO-8859-1?Q?Une_B=E9v?= =?ISO-8859-1?Q?ue?=) Date: 2008-07-29T21:44:37+09:00 Subject: [jRuby] net/ssh unsupported algorithm: DSS1withDSA (OpenSSL::PKey::PKeyError) 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' this is just after : * kex: diffie-hellman-group1-sha1 * host_key: ssh-dss * encryption_server: aes128-cbc * encryption_client: aes128-cbc * hmac_client: hmac-sha1 * hmac_server: hmac-sha1 * compression_client: none * compression_server: none * language_client: * language_server: D, [2008-07-29T14:32:30.388000 #8221] DEBUG -- net.ssh.transport.algorithms[2e]: exchanging keys D, [2008-07-29T14:32:39.914000 #8221] DEBUG -- tcpsocket[2c]: queueing packet nr 1 type 30 len 140 D, [2008-07-29T14:32:39.919000 #8221] DEBUG -- tcpsocket[2c]: sent 144 bytes D, [2008-07-29T14:32:39.931000 #8221] DEBUG -- tcpsocket[2c]: received packet nr 1 type 2 len 12 D, [2008-07-29T14:32:39.937000 #8221] DEBUG -- net.ssh.transport.session[22]: IGNORE packet recieved: "" D, [2008-07-29T14:32:40.544000 #8221] DEBUG -- tcpsocket[2c]: read 656 bytes D, [2008-07-29T14:32:40.683000 #8221] DEBUG -- tcpsocket[2c]: received packet nr 2 type 31 len 636 i think here net/ssh makes use of OpenSSL (even if I didn't require it) which dislike ssh-dss for host-key. the better, for me, would be to avoid using OpenSSL but i don't know how to... also, at the beginning i had only a dsa pair and, because of that prob I've genrerated a rsa one. no change. also I've renammed the known_hosts file in order to generate another one with this new rsa key. abviously, no change ... -- Une B�vue