Vigyata.AI
Is this your channel?

Boost Your SSH Security with YubiKey – Here’s How!

2.3K views· 82 likes· 6:14· Feb 8, 2025

In this video, I’ll show you how to generate an SSH key using a YubiKey and use it for secure authentication to a remote server. Say goodbye to traditional password-based logins and protect your system from unauthorized access! Interested in other Homelab videos? Check out this playlist: https://www.youtube.com/playlist?list=PLhkW8M2MBf-H33LeTrVMc0LwN3EuOqGQV Wanting to automate your builds with Gitlab and Ansible? Check out this playlist: https://www.youtube.com/playlist?list=PLhkW8M2MBf-Gjb5qI-f1vPbXN530Hd1-3 For Business Inquiries you can email me at: sassdrew501@gmail.com

About This Video

In this homelab series video I went down a bit of a rabbit hole with a YubiKey and SSH, and honestly… it’s kind of cool. I had a couple YubiKeys sitting around from years ago and figured I didn’t need them because my phone handles most of my 2FA. But after talking with some friends, I realized I could use a security key for SSH authentication so the login is tied to physically touching the key. That’s a really nice upgrade over the usual “password-based logins” situation. I walk through generating an SSH keypair using the security-key type (the “-sk” part), then grabbing the public key and dropping it into authorized_keys on the server side. One big gotcha: both the client and server need a modern OpenSSH version (at least 8.2) because that’s when FIDO/security key support shows up. In my case, some of my Oracle Linux 8 boxes were stuck on older packages, so I just spun up a CentOS Stream 9 container to make life easier. Once it’s in place, SSH prompts for “confirm user presence,” and you literally touch the YubiKey button to complete the login. The takeaway is simple: you can keep your SSH workflow, but add a physical proof step that makes unauthorized access way harder.

Frequently Asked Questions

🎬 More from sass drew