ri > Net::SSH::HostKeyUnknown

🔗 Net::SSH::HostKeyUnknown < Net::SSH::HostKeyError

📁 from /home/chedong/.local/share/rdoc


🚀 Quick Reference

Use CaseCommandDescription
🔥 Rescue unknown host keyrescue Net::SSH::HostKeyUnknown => eCatch the exception when host key is unknown
🔍 Inspect fingerprinte.fingerprintGet the key fingerprint of the unknown host
💾 Remember host and retrye.remember_host!; retryAdd host to known hosts and retry connection

📝 Description

Raised when there is no cached key for a particular host, which probably means that the host has simply not been seen before. 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.


Net::SSH::HostKeyUnknown
🔗 Net::SSH::HostKeyUnknown < Net::SSH::HostKeyError 🚀 Quick Reference 📝 Description

Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-29 22:50 @216.73.216.177
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format