<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Ssh on homelab</title>
    <link>https://homelab.nbkelley.com/tags/ssh/</link>
    <description>Recent content in Ssh on homelab</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Fri, 01 May 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://homelab.nbkelley.com/tags/ssh/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>SSH Host Key Management &amp; Troubleshooting</title>
      <link>https://homelab.nbkelley.com/docs/infrastructure/ssh_host_key_management/</link>
      <pubDate>Fri, 01 May 2026 00:00:00 +0000</pubDate>
      <guid>https://homelab.nbkelley.com/docs/infrastructure/ssh_host_key_management/</guid>
      <description>&lt;h1 id=&#34;ssh-host-key-management--troubleshooting&#34;&gt;SSH Host Key Management &amp;amp; Troubleshooting&lt;a class=&#34;anchor&#34; href=&#34;#ssh-host-key-management--troubleshooting&#34;&gt;#&lt;/a&gt;&lt;/h1&gt;&#xA;&lt;h2 id=&#34;what-was-established&#34;&gt;What Was Established&lt;a class=&#34;anchor&#34; href=&#34;#what-was-established&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;Standard procedures for resolving SSH &lt;code&gt;REMOTE HOST IDENTIFICATION HAS CHANGED&lt;/code&gt; warnings, which occur when a host&amp;rsquo;s SSH fingerprint differs from the locally stored &lt;code&gt;known_hosts&lt;/code&gt; entry. This typically happens after a server reinstall, OS upgrade, or SSH key regeneration.&lt;/p&gt;&#xA;&lt;h2 id=&#34;key-decisions--commands&#34;&gt;Key Decisions &amp;amp; Commands&lt;a class=&#34;anchor&#34; href=&#34;#key-decisions--commands&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Verify Legitimacy&lt;/strong&gt;: Always confirm with a system administrator or check server logs if a key change is unexpected, as it could indicate a man-in-the-middle attack.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Remove Stale Keys&lt;/strong&gt;: Use &lt;code&gt;ssh-keygen -R &amp;lt;hostname&amp;gt;&lt;/code&gt; to safely remove the outdated entry from &lt;code&gt;~/.ssh/known_hosts&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Targeted Removal&lt;/strong&gt;: If the error specifies a line number (e.g., line 9), you can remove it via &lt;code&gt;sed -i &#39;&#39; &#39;9d&#39; ~/.ssh/known_hosts&lt;/code&gt; or manually edit the file.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Pre-populate Keys&lt;/strong&gt;: In managed environments, use &lt;code&gt;ssh-keyscan &amp;lt;host&amp;gt; &amp;gt;&amp;gt; ~/.ssh/known_hosts&lt;/code&gt; to automate key acceptance.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Security Best Practice&lt;/strong&gt;: Prefer certificate-based authentication in sensitive environments to bypass host key checking entirely.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;current-configuration&#34;&gt;Current Configuration&lt;a class=&#34;anchor&#34; href=&#34;#current-configuration&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Host Encountered&lt;/strong&gt;: &lt;code&gt;proxy&lt;/code&gt; (192.168.1.222, Nginx Proxy Manager)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;User Context&lt;/strong&gt;: Commands executed from macOS (&lt;code&gt;NK---Galadriel&lt;/code&gt;) as user &lt;code&gt;natekelley&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Fingerprint Example&lt;/strong&gt;: &lt;code&gt;SHA256:k5j8V356rpQXapznIs12MeBEWHfZYwfeicXdNNWFyOI&lt;/code&gt; (ED25519)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;historical-notes&#34;&gt;Historical Notes&lt;a class=&#34;anchor&#34; href=&#34;#historical-notes&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Initial troubleshooting documented on 2025-11-17. The &lt;code&gt;proxy&lt;/code&gt; host likely had its underlying VM/container rebuilt or its SSH configuration reset, triggering the warning.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;open-questions&#34;&gt;Open Questions&lt;a class=&#34;anchor&#34; href=&#34;#open-questions&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Should SSH host keys be version-controlled or managed via a configuration management tool (e.g., Ansible) to prevent future mismatches?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;related-pages&#34;&gt;Related Pages&lt;a class=&#34;anchor&#34; href=&#34;#related-pages&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://homelab.nbkelley.com/docs/networking/proxy-management/&#34;&gt;Proxy Management &amp;amp; Cloudflare Tunnels&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://homelab.nbkelley.com/docs/infrastructure/network_troubleshooting/&#34;&gt;Troubleshooting Network Interface Changes&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;sources&#34;&gt;Sources&lt;a class=&#34;anchor&#34; href=&#34;#sources&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;ingested/chats/111-Check and Install Git, Go, Dart Sass on Ubuntu.md&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;ingested/chats/104-SSH Host Key Change Warning and Fix.md&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Historical DeepSeek conversation: SSH Host Key Change Warning and Fix (2025-11-17)&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
    </item>
  </channel>
</rss>
