# ri > Net::SSH::HostKeyError

## [Net::SSH::HostKeyError](https://www.chedong.com/phpMan.php/perldoc/Net%3A%3ASSH%3A%3AHostKeyError/markdown) < [Net::SSH::Exception](https://www.chedong.com/phpMan.php/perldoc/Net%3A%3ASSH%3A%3AException/markdown)

(from /home/chedong/.local/share/rdoc)
------------------------------------------------------------------------
Base class for host key exceptions. 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.
------------------------------------------------------------------------
## Instance methods:

  []
  fingerprint
  host
  ip
  key
  port
  remember_host!

