Note that there are some explanatory texts on larger screens.

plurals
  1. PORuby-SSH: Unable to use any of the Rye::Box::Cmd commands with fingerprint/HostKeyMismatch errors
    primarykey
    data
    text
    <p>I'm using the Rye ruby gem to SSH to a server and I'm having the problem where if I try to run any command from there I'm getting the following error:</p> <blockquote> <p>rbox = Rye::Box.new(server, :user => "user", :password => "password")</p> <p>rbox.ls</p> <p>fingerprint d3:a1:15:ab:05:0d:4e:45:9f:b3:94:14:ca:11:d6:be does not match for "server,10.10.10.2" Continue?</p> <p>Net::SSH::HostKeyMismatch: Net::SSH::HostKeyMismatch</p> </blockquote> <pre><code> from C:/jruby-1.6.8/lib/ruby/gems/1.8/gems/rye-0.9.8/lib/rye/box.rb:678:in `connect' from C:/jruby-1.6.8/lib/ruby/gems/1.8/gems/rye-0.9.8/lib/rye/box.rb:778:in `run_command' from C:/jruby-1.6.8/lib/ruby/gems/1.8/gems/rye-0.9.8/lib/rye/cmd.rb:106:in `which' from (irb):31:in `evaluate' from org/jruby/RubyKernel.java:1112:in `eval' from C:/jruby-1.6.8/lib/ruby/1.8/irb.rb:158:in `eval_input' from C:/jruby-1.6.8/lib/ruby/1.8/irb.rb:271:in `signal_status' from C:/jruby-1.6.8/lib/ruby/1.8/irb.rb:270:in `signal_status' from C:/jruby-1.6.8/lib/ruby/1.8/irb.rb:155:in `eval_input' from org/jruby/RubyKernel.java:1439:in `loop' from org/jruby/RubyKernel.java:1212:in `catch' from C:/jruby-1.6.8/lib/ruby/1.8/irb.rb:154:in `eval_input' from C:/jruby-1.6.8/lib/ruby/1.8/irb.rb:71:in `start' from org/jruby/RubyKernel.java:1212:in `catch' from C:/jruby-1.6.8/lib/ruby/1.8/irb.rb:70:in `start' from C:\jruby-1.6.8\bin\irb:13:in `(root)' </code></pre> <p>I've tried deleting the 'known_hosts' file from the current user home (~/.ssh/known_hosts) but still failing with the same issue. I've tried connecting with a different user and same problem as well.</p> <p>The strange thing is that that fingerprint is always displaying the same value, so not sure where it's coming from.</p> <blockquote> <p>rbox.keys -> doesn't return anything, just []</p> <p>rye keys -> NameError: undefined local variable or method `keys' for main:Object</p> <p>rbox.host_key -> The process cannot access the file because it is being used by another process. => [, , 1, ]</p> </blockquote> <p>Any idea what could be causing this issue and what else could I try to sort it out or work around it?</p> <p>Many thanks!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload