[MacRuby-devel] [MacRuby] #530: Net::SSH doesn't work with MacRuby
MacRuby
ruby-noreply at macosforge.org
Thu Dec 31 13:46:15 PST 2009
#530: Net::SSH doesn't work with MacRuby
---------------------------------+------------------------------------------
Reporter: sk8tr1981@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: critical | Milestone:
Component: MacRuby | Keywords:
---------------------------------+------------------------------------------
Comment(by sk8tr1981@…):
Thanks a lot for the tips. Unfortunately after many changes and try outs
Net::SSH is still not working, and other errors are popping out.
After having a public method call that protected #initialize_ssh, another
problem appeared, which was being called by transport/session.rb:
{{{
def initialize(host, options={})
self.logger = options[:logger]
...
end
}}}
{{{
NoMethodError: undefined method `logger=' for #<TCPSocket:0x2000e5440>
from
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems
/net-ssh-2.0.17/lib/net/ssh/transport/session.rb:57:in `initialize:'
from core:in `__new__:'
from
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems
/net-ssh-2.0.17/lib/net/ssh.rb:155:in `start:'
}}}
So I thought: "Ok, lets remove the logger from being called then". After
doing so:
{{{
NoMethodError: undefined method `e=' for -----BEGIN RSA PUBLIC KEY-----
MAA=
-----END RSA PUBLIC KEY-----
:OpenSSL::PKey::RSA
from
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems
/net-ssh-2.0.17/lib/net/ssh/buffer.rb:249:in `read_keyblob:'
from
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems
/net-ssh-2.0.17/lib/net/ssh/buffer.rb:238:in `read_key'
from core:in `each_line:'
from core:in `open:'
from
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems
/net-ssh-2.0.17/lib/net/ssh/known_hosts.rb:89:in `keys_for:'
from core:in `map'
from
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems
/net-ssh-2.0.17/lib/net/ssh/known_hosts.rb:23:in `search_in:'
from
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems
/net-ssh-2.0.17/lib/net/ssh/known_hosts.rb:17:in `search_for:'
from
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems
/net-ssh-2.0.17/lib/net/ssh/transport/algorithms.rb:183:in
`prepare_preferred_algorithms!'
from
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems
/net-ssh-2.0.17/lib/net/ssh/transport/algorithms.rb:in `initialize:'
from core:in `__new__:'
from
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems
/net-ssh-2.0.17/lib/net/ssh/transport/session.rb:62:in `initialize:'
from core:in `__new__:'
from
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems
/net-ssh-2.0.17/lib/net/ssh.rb:155:in `start:'
}}}
Any ideas what the next step should be? Also, how hard would it be to have
MacRuby's dispatcher "work" similar to ruby's MRI, regarding #send?
Thanks!
--
Ticket URL: <http://www.macruby.org/trac/ticket/530#comment:7>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list