{"id":2169,"date":"2022-10-15T17:08:59","date_gmt":"2022-10-15T15:08:59","guid":{"rendered":"https:\/\/www.speich.net\/articles\/?p=2169"},"modified":"2022-10-30T15:15:56","modified_gmt":"2022-10-30T14:15:56","slug":"how-to-use-a-yubikey-for-two-factor-autenthication-on-linux-mint","status":"publish","type":"post","link":"https:\/\/www.speich.net\/articles\/en\/2022\/10\/15\/how-to-use-a-yubikey-for-two-factor-autenthication-on-linux-mint\/","title":{"rendered":"How to use a YubiKey for two-factor autenthication on Linux Mint"},"content":{"rendered":"\n<p>This post will show you how to setup and use a YubiKey and the Yubico Authenticator application to sign in to a Microsoft Azure Cloud Account using Linux Mint 20 without the need for the Microsoft Authenticator being installed on your mobile phone:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Yubico Authenticator desktop installation<\/h2>\n\n\n\n<p>1. <a rel=\"noreferrer noopener\" href=\"https:\/\/support.yubico.com\/hc\/en-us\/articles\/360016649039-Installing-Yubico-Software-on-Linux\" target=\"_blank\">Download and install the Yubico Authenticator<\/a> AppImage:<\/p>\n\n\n\n<pre class=\"wp-block-code lang-bash\"><code># install dependency first\n$ sudo apt install pcscd\n$ sudo systemctl enable --now pcscd\n\n# download latest version with curl\n$ cd  ~\/Downloads\n$ curl -L -O -J https:\/\/developers.yubico.com\/yubioath-desktop\/Releases\/yubioath-desktop-latest-linux.AppImage\n\n# make executable\n$ chmod +x yubioath-desktop-latest-linux.AppImage\n\n# extract icon, which we can use for the menu item below\n$ cp yubioath-desktop-latest-linux.AppImage temp.7z\n$ file-roller --extract-here temp.7z \n\n# move to \/opt\/yubico\n$ sudo mkdir \/opt\/yubico\n$ sudo mv yubioath-desktop-latest-linux.AppImage \/opt\/yubico\/\n$ sudo mv temp\/com.yubico.yubioath.svg \/opt\/yubico\/<\/code><\/pre>\n\n\n\n<!--more-->\n\n\n\n<p>2. Create a Cinnamon menu launcher for the Yubico Authenticator:<\/p>\n\n\n\n<pre class=\"wp-block-code lang-bash\"><code>$ cinnamon-menu-editor<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-3-1024x990.png\" alt=\"\" class=\"wp-image-2176\" width=\"512\" height=\"495\" srcset=\"https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-3-1024x990.png 1024w, https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-3-300x290.png 300w, https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-3-1536x1485.png 1536w, https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-3-1568x1516.png 1568w, https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-3.png 1642w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/figure>\n\n\n\n<p>3. Add the Yubico Authenticator also to the startup applications.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Login with two-factor authentication (2FA)<\/h2>\n\n\n\n<p>Before we add the Microsoft Service, we setup up a pin:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Open the Authenticator application and insert your YubiKey.<\/li><li>Click on the hamburger menu in the top left corner.<\/li><\/ol>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p>3. Select YubiKey<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-9-607x1024.png\" alt=\"\" class=\"wp-image-2187\" width=\"304\" height=\"512\" srcset=\"https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-9-607x1024.png 607w, https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-9-178x300.png 178w, https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-9.png 762w\" sizes=\"auto, (max-width: 304px) 100vw, 304px\" \/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p>4. select Configuration<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-5-600x1024.png\" alt=\"\" class=\"wp-image-2182\" width=\"300\" height=\"512\" srcset=\"https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-5-600x1024.png 600w, https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-5-176x300.png 176w, https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-5.png 754w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p>5. set\/change your pin and go back<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-8-607x1024.png\" alt=\"\" class=\"wp-image-2185\" width=\"304\" height=\"512\" srcset=\"https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-8-607x1024.png 607w, https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-8-178x300.png 178w, https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-8.png 762w\" sizes=\"auto, (max-width: 304px) 100vw, 304px\" \/><\/figure>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<p>6. Click on the hamburger menu and select Authenticator.<\/p>\n\n\n\n<p>7. Sign in to your Microsoft Azure Account.<\/p>\n\n\n\n<p>8. Select &#8220;Security info&#8221;, click on &#8220;+ Add sing-in method&#8221;, select &#8220;Authenticator app&#8221; and click on the &#8220;Add&#8221; button.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-12-1024x605.png\" alt=\"\" class=\"wp-image-2194\" width=\"512\" height=\"303\" srcset=\"https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-12-1024x605.png 1024w, https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-12-300x177.png 300w, https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-12-1536x907.png 1536w, https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-12-1568x926.png 1568w, https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-12.png 1602w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<p>9. Click on &#8220;I want to use a different authenticator app&#8221;. Click the &#8220;Next&#8221; button.<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-11-1024x525.png\" alt=\"\" class=\"wp-image-2193\" width=\"512\" height=\"263\" srcset=\"https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-11-1024x525.png 1024w, https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-11-300x154.png 300w, https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-11-1536x788.png 1536w, https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-11-1568x804.png 1568w, https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-11.png 1794w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<p>10. When the scanning the QR code dialog comes up, switch to the Yubico Authenticator, click on the more icon and select &#8220;Scan QR code&#8221;. The Authenticator will automatically find the QR code on the screen and create an account \ud83d\ude42<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-15-1024x513.png\" alt=\"\" class=\"wp-image-2197\" width=\"768\" height=\"385\" srcset=\"https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-15-1024x513.png 1024w, https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-15-300x150.png 300w, https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-15-1536x769.png 1536w, https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-15-2048x1026.png 2048w, https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-15-1568x785.png 1568w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/figure>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p>12. Click on &#8220;Add account&#8221;, switch back to the Microsoft sign-in dialog and click on &#8220;Next&#8221;.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-20.png\" alt=\"\" class=\"wp-image-2203\" width=\"397\" height=\"434\" srcset=\"https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-20.png 794w, https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-20-274x300.png 274w\" sizes=\"auto, (max-width: 397px) 100vw, 397px\" \/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p>13. Finish the 2FA process by entering the 6-digit code shown in the Authenticator. You can just double click the entry to copy it.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-19.png\" alt=\"\" class=\"wp-image-2202\" width=\"400\" height=\"411\" srcset=\"https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-19.png 799w, https:\/\/www.speich.net\/wp\/wp-content\/uploads\/2022\/10\/image-19-292x300.png 292w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post will show you how to setup and use a YubiKey and the Yubico Authenticator application to sign in to a Microsoft Azure Cloud Account using Linux Mint 20 without the need for the Microsoft Authenticator being installed on your mobile phone: Yubico Authenticator desktop installation 1. Download and install the Yubico Authenticator AppImage:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[315],"tags":[311,54,313],"class_list":["post-2169","post","type-post","status-publish","format-standard","hentry","category-linux","tag-2fa","tag-linux-mint","tag-yubikey","entry"],"_links":{"self":[{"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/posts\/2169","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/comments?post=2169"}],"version-history":[{"count":19,"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/posts\/2169\/revisions"}],"predecessor-version":[{"id":2213,"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/posts\/2169\/revisions\/2213"}],"wp:attachment":[{"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/media?parent=2169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/categories?post=2169"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/tags?post=2169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}