Raised when the cached key for a particular host does not match the key given by the host, which can be indicative of a man-in-the-middle attack. When rescuing this exception, you can inspect the key fingerprint and, if you want to proceed anyway, simply call the remember_host! method on the exception, and then retry.

Methods
Attributes
[W] callback
[W] data
Public Instance methods
[](key)
    # File lib/net/ssh/errors.rb, line 34
34:       def [](key)
35:         @data[key]
36:       end
fingerprint()
    # File lib/net/ssh/errors.rb, line 38
38:       def fingerprint
39:         @data[:fingerprint]
40:       end
host()
    # File lib/net/ssh/errors.rb, line 42
42:       def host
43:         @data[:peer][:host]
44:       end
ip()
    # File lib/net/ssh/errors.rb, line 50
50:       def ip
51:         @data[:peer][:ip]
52:       end
key()
    # File lib/net/ssh/errors.rb, line 54
54:       def key
55:         @data[:key]
56:       end
port()
    # File lib/net/ssh/errors.rb, line 46
46:       def port
47:         @data[:peer][:port]
48:       end
remember_host!()
    # File lib/net/ssh/errors.rb, line 58
58:       def remember_host!
59:         @callback.call
60:       end