logo       

[jruby-user] jopenssl and ssh issue (was: ssh and sftp from JRuby?): msg#00147

lang.jruby.user

Subject: [jruby-user] jopenssl and ssh issue (was: ssh and sftp from JRuby?)

I've been trying to get this to work, but get the following error
(looks like the OpenSSL::BN class isn't fully implemented):

irb(main):011:0> session = Net::SSH.start('host_name', 'user_name', 'pw')
ArgumentError: wrong number of arguments(2 for 0)
from /.../net-ssh-1.1.2/lib/net/ssh/transport/ossl/buffer.rb:35:in
`read_bignum'
from /.../net-ssh-1.1.2/lib/net/ssh/transport/ossl/buffer.rb:59:in
`read_keyblob'
from /.../net-ssh-1.1.2/lib/net/ssh/transport/ossl/buffer.rb:43:in
`read_key'
from /.../net-ssh-1.1.2/lib/net/ssh/known-hosts.rb:75:in `keys_for'
from /.../net-ssh-1.1.2/lib/net/ssh/known-hosts.rb:62:in `each_line'
from /.../net-ssh-1.1.2/lib/net/ssh/known-hosts.rb:62:in `keys_for'

Anyone found a workaround for this?

Thanks,

-Bill

On May 15, 2007 8:28 AM, Nick Sieger <nicksieger@xxxxxxxxx> wrote:
> On 5/15/07, Ronald Fischer <ronald.fischer@xxxxxxxxxx> wrote:
> > Hello,
> >
> > did someone already successfully use SSH and SFTP from within JRuby?
> >
> > I know only the Ruby classes net/ssh etc., written by Jamis Buck, but
> > aside from that I haven't managed yet to install it properly, Jamis
> > wrote about it in a mail:
> >
> > "Note that net/ssh will not work with JRuby, though, because net/ssh
> > requires OpenSSL bindings for Ruby.JRuby may actually have
> > at least a partial OpenSSL implementation available. I have no idea
> > whether it is sufficient for running net/ssh, though."
> >
> > So I wonder if someone already had successfully controlled ssh and/or
> > sftp
> > from JRuby on Windows.
>
> I haven't heard of anyone to try this combination yet. You could be
> the first! :) It certainly would be cool if Ola's openssl
> implementation allowed use of net/ssh.
>
> /Nick
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
> http://xircles.codehaus.org/manage_email
>
>

---------------------------------------------------------------------
To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise