class Net::SSH::HostKeyError
the remember_host! method on the exception, and then retry.
inspect the key fingerprint and, if you want to proceed anyway, simply call
Base class for host key exceptions. When rescuing this exception, you can
def [](key)
An accessor for getting at the data that was used to look up the host
def [](key) @data && @data[key] end
def fingerprint
Returns the fingerprint of the key for the host, which either was not
def fingerprint @data && @data[:fingerprint] end
def host
def host @data && @data[:peer] && @data[:peer][:host] end
def ip
def ip @data && @data[:peer] && @data[:peer][:ip] end
def key
def key @data && @data[:key] end
def port
def port @data && @data[:peer] && @data[:peer][:port] end
def remember_host!
Tell Net::SSH to record this host and key in the known hosts file, so
def remember_host! @callback.call end