Ruby-SSH: Unable to use any of the Rye::Box::Cmd commands with fingerprint/HostKeyMismatch errors -


i'm using rye ruby gem ssh server , i'm having problem if try run command there i'm getting following error:

rbox = rye::box.new(server, :user => "user", :password => "password")

rbox.ls

fingerprint d3:a1:15:ab:05:0d:4e:45:9f:b3:94:14:ca:11:d6:be not match "server,10.10.10.2" continue?

net::ssh::hostkeymismatch: net::ssh::hostkeymismatch

    c:/jruby-1.6.8/lib/ruby/gems/1.8/gems/rye-0.9.8/lib/rye/box.rb:678:in `connect'     c:/jruby-1.6.8/lib/ruby/gems/1.8/gems/rye-0.9.8/lib/rye/box.rb:778:in `run_command'     c:/jruby-1.6.8/lib/ruby/gems/1.8/gems/rye-0.9.8/lib/rye/cmd.rb:106:in `which'     (irb):31:in `evaluate'     org/jruby/rubykernel.java:1112:in `eval'     c:/jruby-1.6.8/lib/ruby/1.8/irb.rb:158:in `eval_input'     c:/jruby-1.6.8/lib/ruby/1.8/irb.rb:271:in `signal_status'     c:/jruby-1.6.8/lib/ruby/1.8/irb.rb:270:in `signal_status'     c:/jruby-1.6.8/lib/ruby/1.8/irb.rb:155:in `eval_input'     org/jruby/rubykernel.java:1439:in `loop'     org/jruby/rubykernel.java:1212:in `catch'     c:/jruby-1.6.8/lib/ruby/1.8/irb.rb:154:in `eval_input'     c:/jruby-1.6.8/lib/ruby/1.8/irb.rb:71:in `start'     org/jruby/rubykernel.java:1212:in `catch'     c:/jruby-1.6.8/lib/ruby/1.8/irb.rb:70:in `start'     c:\jruby-1.6.8\bin\irb:13:in `(root)' 

i've tried deleting 'known_hosts' file current user home (~/.ssh/known_hosts) still failing same issue. i've tried connecting different user , same problem well.

the strange thing that fingerprint displaying same value, not sure it's coming from.

rbox.keys -> doesn't return anything, []

rye keys -> nameerror: undefined local variable or method `keys' main:object

rbox.host_key -> process cannot access file because being used process. => [, , 1, ]

any idea causing issue , else try sort out or work around it?

many thanks!

this library based on ruby's net::ssh , looking cached host keys in ~/.ssh/known_hosts , /etc/ssh/knowh_hosts. more information see documentation on net::ssh::knownhosts.


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -