<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>YubiKey on Smart Home? Sure — But Secure!</title>
        <link>https://smarthome-aber-sicher.de/en/tags/yubikey/</link>
        <description>Recent content in YubiKey on Smart Home? Sure — But Secure!</description>
        <generator>Hugo -- gohugo.io</generator>
        <language>en</language>
        <lastBuildDate>Sun, 08 Jun 2025 09:00:00 +0200</lastBuildDate><atom:link href="https://smarthome-aber-sicher.de/en/tags/yubikey/index.xml" rel="self" type="application/rss+xml" /><item>
        <title>SSH Access with YubiKey: How to Properly Secure Your Smart Home Server</title>
        <link>https://smarthome-aber-sicher.de/en/blog/2025/06/08/ssh-access-with-yubikey-how-to-properly-secure-your-smart-home-server/</link>
        <pubDate>Sun, 08 Jun 2025 09:00:00 +0200</pubDate>
        
        <guid>https://smarthome-aber-sicher.de/en/blog/2025/06/08/ssh-access-with-yubikey-how-to-properly-secure-your-smart-home-server/</guid>
        <description>&lt;img src="https://smarthome-aber-sicher.de/blog/2025/06/08/ssh-zugriff-mit-yubikey-so-sicherst-du-deinen-smart-home-server-richtig-ab/cover.png" alt="Featured image of post SSH Access with YubiKey: How to Properly Secure Your Smart Home Server" /&gt;&lt;h2 id=&#34;why-securing-ssh-in-your-smart-home-matters&#34;&gt;Why Securing SSH in Your Smart Home Matters
&lt;/h2&gt;&lt;p&gt;Sound familiar? You&amp;rsquo;re about to leave for vacation and quickly want to change something in your system – only to find that remote access suddenly stops working. Many people then simply open their SSH port to the internet or use the Home Assistant Web Terminal add-on in the browser. That sounds convenient, but it&amp;rsquo;s extremely dangerous: often a single password is all it takes for someone to gain full access to your entire system.&lt;/p&gt;
&lt;p&gt;In this video, I&amp;rsquo;ll show you how to properly secure your SSH access with a YubiKey. It&amp;rsquo;s easier than you think – and I&amp;rsquo;ll walk you through it step by step.&lt;/p&gt;
&lt;div class=&#34;video-wrapper&#34;&gt;
    &lt;div class=&#34;video-placeholder&#34; onclick=&#34;loadIframe(this)&#34;&gt;
        &lt;img src=&#34;https://smarthome-aber-sicher.de/img/sas_youtube.png&#34; alt=&#34;YouTube Video&#34;&gt;
        &lt;div class=&#34;play-button&#34;&gt;&lt;/div&gt;
        &lt;div class=&#34;privacy-notice&#34;  style=&#34;color: var(--card-text-color-main);&#34;&gt;
            To load the video, please click the image. Please note that by doing so, data will be transmitted to YouTube.
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;
&lt;script&gt;
    function loadIframe(element) {
        var iframe = document.createElement(&#39;iframe&#39;);
        iframe.setAttribute(&#39;loading&#39;, &#39;lazy&#39;);
        iframe.setAttribute(&#39;src&#39;, &#39;https://www.youtube-nocookie.com/embed/vqE-uHGZUsI&#39;);
        iframe.setAttribute(&#39;allowfullscreen&#39;, &#39;&#39;);
        iframe.setAttribute(&#39;title&#39;, &#39;YouTube Video&#39;);
        element.parentNode.replaceChild(iframe, element);
    }
&lt;/script&gt;
&lt;style&gt;
    .video-placeholder {
        position: relative;
        cursor: pointer;
    }
    .video-placeholder img {
        width: 100%;
        height: auto;
    }
    .play-button {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 60px;
        height: 60px;
        background: url(&#39;/img/youtube_button.svg&#39;) no-repeat center center;
        background-size: contain;
    }
    .video-placeholder:hover .play-button {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 60px;
        height: 60px;
        background: url(&#39;/img/youtube_button_hover.svg&#39;) no-repeat center center;
        background-size: contain;
    }
    .privacy-notice {
        position: absolute;
        bottom: 50px;
        width: 100%;
        left: 50%;
        transform: translateX(-50%);
        background-color: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 5px 10px;
        border-radius: 5px;
        font-size: 12px;
        text-align: center;
    }
&lt;/style&gt;

&lt;h2 id=&#34;what-is-a-yubikey-and-why-is-it-so-secure&#34;&gt;What Is a YubiKey and Why Is It So Secure?
&lt;/h2&gt;&lt;p&gt;The YubiKey is a small USB stick that works like a digital key for you. It stores your access credentials in a way that they never reside on your computer and can&amp;rsquo;t be stolen. For SSH, the YubiKey uses the modern security standard FIDO2. Even if someone knows your password, they can&amp;rsquo;t access your server without the YubiKey. You plug in the stick, tap it – and you&amp;rsquo;re securely logged in. This is far more secure and convenient than traditional passwords or certificate files stored on your machine.&lt;/p&gt;
&lt;h2 id=&#34;where-to-buy-a-yubikey&#34;&gt;Where to Buy a YubiKey
&lt;/h2&gt;&lt;p&gt;You can get a YubiKey through my recommended links:&lt;/p&gt;
&lt;p&gt;The following models are suitable for this project:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;👉 &lt;a class=&#34;link&#34; href=&#34;https://amzn.to/3TdTTZT&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;YubiKey 5 NFC USB-A&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;👉 &lt;a class=&#34;link&#34; href=&#34;https://amzn.to/4jJfofT&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;YubiKey 5C USB-C&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;👉 &lt;a class=&#34;link&#34; href=&#34;https://amzn.to/3TdU9YR&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;YubiKey C NFC USB-C&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;👉 &lt;a class=&#34;link&#34; href=&#34;https://amzn.to/3TdTTZT&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;More keys&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;





&lt;blockquote&gt;
    &lt;p&gt;Note: Links marked with &lt;em&gt;affiliate link&lt;/em&gt; are affiliate links. As an Amazon Associate I earn from qualifying purchases. This means I receive a small commission if you purchase through these links — at no extra cost to you. The revenue helps me run this blog and YouTube channel and keep creating content. Thank you for your support!&lt;/p&gt;&lt;span class=&#34;cite&#34;&gt;&lt;span&gt;― &lt;/span&gt;&lt;span&gt;Joachim&lt;/span&gt;&lt;cite&gt;&lt;/cite&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;Tip:&lt;/strong&gt; Always order from the official retailer or a trusted shop to ensure you receive a genuine, sealed device.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note: These are affiliate links. If you order through them, you support my blog – at no extra cost to you. Thank you!&lt;/em&gt;&lt;/p&gt;
&lt;h2 id=&#34;the-three-ways-to-ssh-login--and-why-yubikey-is-the-best-choice&#34;&gt;The Three Ways to SSH Login – and Why YubiKey Is the Best Choice
&lt;/h2&gt;&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Password:&lt;/strong&gt; Simple, but insecure – passwords can be guessed, intercepted, or shared.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Certificate (key pair):&lt;/strong&gt; Much more secure, but if someone gains access to your computer, they can copy the private key.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;YubiKey:&lt;/strong&gt; The private key doesn&amp;rsquo;t live on your computer – it&amp;rsquo;s securely stored on the YubiKey. Access is only possible with the physical stick and your confirmation.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;step-by-step-setting-up-a-yubikey-for-ssh-using-termius-as-an-example&#34;&gt;Step by Step: Setting Up a YubiKey for SSH (Using Termius as an Example)
&lt;/h2&gt;&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Choose your YubiKey:&lt;/strong&gt; There are various models (USB-A, USB-C, NFC, Lightning). Think about which devices you&amp;rsquo;ll be using the stick with.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Install Termius:&lt;/strong&gt; This app makes the setup particularly straightforward. (OpenSSH, PuTTY, etc. also work.)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Add the YubiKey:&lt;/strong&gt; In Termius, go to &amp;ldquo;Keychain&amp;rdquo; → &amp;ldquo;FIDO2&amp;rdquo;, select the stick, enter your PIN, name and generate the key. Enable &amp;ldquo;Require user presence&amp;rdquo;, disable &amp;ldquo;Require PIN code&amp;rdquo;, and leave the passphrase empty.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Copy the public key to the server:&lt;/strong&gt; Termius offers an export function that automatically adds the key to &lt;code&gt;~/.ssh/authorized_keys&lt;/code&gt;. You can also do this manually.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Test the connection:&lt;/strong&gt; Start a new SSH session, tap the YubiKey – done!&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Disable password login:&lt;/strong&gt; Set &lt;code&gt;PasswordAuthentication no&lt;/code&gt; in &lt;code&gt;/etc/ssh/sshd_config&lt;/code&gt; and restart the SSH service.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;important-notes--tips&#34;&gt;Important Notes &amp;amp; Tips
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;When setting up your YubiKey for the first time, you&amp;rsquo;ll need to set a PIN. This protects against misuse if someone finds the stick.&lt;/li&gt;
&lt;li&gt;The private key is split into two parts: one stays on the computer, one on the YubiKey. For a new machine, you&amp;rsquo;ll need to generate a new key pair and register the public key on the server.&lt;/li&gt;
&lt;li&gt;&amp;ldquo;Resident keys&amp;rdquo; (keys stored directly on the YubiKey) are a special case and aren&amp;rsquo;t yet widely supported by many tools.&lt;/li&gt;
&lt;li&gt;It&amp;rsquo;s best to set up a second YubiKey as a backup right away, so you don&amp;rsquo;t lock yourself out.&lt;/li&gt;
&lt;li&gt;If everything does go wrong: you can always access your machine directly with a monitor and keyboard.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;yubikey-in-everyday-use-much-more-than-just-ssh&#34;&gt;YubiKey in Everyday Use: Much More Than Just SSH
&lt;/h2&gt;&lt;p&gt;The YubiKey can do much more: two-factor authentication for Google, Microsoft, Facebook, Dropbox, Amazon, password managers like Bitwarden or 1Password, online banking, email accounts, and much more. Once set up, it becomes a real everyday companion for everything that matters to you.&lt;/p&gt;
&lt;h2 id=&#34;conclusion&#34;&gt;Conclusion
&lt;/h2&gt;&lt;p&gt;With a YubiKey, you make your SSH access – and many other logins – not only more secure, but also more convenient. You protect yourself against password theft, phishing, and many other attacks, all with a small stick that fits in any pocket.&lt;/p&gt;
</description>
        </item>
        
    </channel>
</rss>
