{"id":5370,"date":"2013-02-20T09:20:18","date_gmt":"2013-02-20T14:20:18","guid":{"rendered":"http:\/\/g33kinfo.com\/info\/?p=5370"},"modified":"2013-02-20T09:20:18","modified_gmt":"2013-02-20T14:20:18","slug":"add-two-factor-ssh-authentication-with-authy","status":"publish","type":"post","link":"https:\/\/g33kinfo.com\/info\/add-two-factor-ssh-authentication-with-authy\/","title":{"rendered":"Add Two Factor SSH Authentication With Authy"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>From <a href=\"http:\/\/blog.authy.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">blog.authy.com<\/a><\/p>\n<p>This is an excellent tool to implement 2 factor authentication on your server. Granted you will need your phone close by in order to login but if you have ever used RSA, this will be very familiar to you.<\/p>\n<p>You will need to <a href=\"https:\/\/www.authy.com\/signup?plan=DeveloperPlan\" target=\"_blank\" rel=\"noopener noreferrer\">sign up<\/a> in order to use this.<\/p>\n<p>Once you sign up, you will receive an email to authenticate against the account. Once this is done, you will need to install the <a href=\"https:\/\/play.google.com\/store\/apps\/details?id=com.authy.authy\" target=\"_blank\" rel=\"noopener noreferrer\">smartphone app<\/a>. Once this is installed, you will begin receiving updates every 20 seconds with new codes when the app is active.<\/p>\n<p>Once you login to your new Authy account, go to the User Menu (top left) and create a new application. Name the app and it will provide the API key needed for the server install in step 2.<\/p>\n<p>Next you will be asked what you would like to do in case your server cannot connect to API. Select option 1 or 2 at this point. Authy will then be installed and configured. Next, enable the 2 factor authentication by adding the needed user info seen below in step 3. That&#8217;s it, the authentication is ready to go. Restart SSH to make sure the new configs take effect.<\/p>\n<p>Here is a video of the install process for <a href=\"https:\/\/vimeo.com\/58410368\" target=\"_blank\" rel=\"noopener noreferrer\">Authy<\/a><\/p>\n<p>The github code can be found <a href=\"https:\/\/github.com\/authy\/authy-ssh\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a><\/p>\n<p>To install on the server:<\/p>\n<p><code><br \/>\n$ curl 'https:\/\/raw.github.com\/authy\/authy-ssh\/master\/authy-ssh' -o authy-ssh<br \/>\n$ sudo bash authy-ssh install \/usr\/local\/bin<br \/>\n$ sudo \/usr\/local\/bin\/authy-ssh enable `whoami` (your-email) (your-country-code) (your-cellphone)<br \/>\n$ authy-ssh test<br \/>\n$ sudo service ssh restart<br \/>\n<\/code><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; From blog.authy.com This is an excellent tool to implement 2 factor authentication on your server. Granted you will need your phone close by in order to login but if you have ever used RSA, this will be very familiar to you. You will need to sign up in order to use this. Once you&#8230; <\/p>\n<div class=\"read-more navbutton\"><a href=\"https:\/\/g33kinfo.com\/info\/add-two-factor-ssh-authentication-with-authy\/\">Read More<i class=\"fa fa-angle-double-right\"><\/i><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-5370","post","type-post","status-publish","format-standard","hentry","category-ssh"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Add Two Factor SSH Authentication With Authy - Linux Shtuff<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/g33kinfo.com\/info\/add-two-factor-ssh-authentication-with-authy\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Add Two Factor SSH Authentication With Authy - Linux Shtuff\" \/>\n<meta property=\"og:description\" content=\"&nbsp; From blog.authy.com This is an excellent tool to implement 2 factor authentication on your server. Granted you will need your phone close by in order to login but if you have ever used RSA, this will be very familiar to you. You will need to sign up in order to use this. Once you... Read More\" \/>\n<meta property=\"og:url\" content=\"https:\/\/g33kinfo.com\/info\/add-two-factor-ssh-authentication-with-authy\/\" \/>\n<meta property=\"og:site_name\" content=\"Linux Shtuff\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/fb.me\/g33kinf0\" \/>\n<meta property=\"article:author\" content=\"https:\/\/fb.me\/g33kinf0\" \/>\n<meta property=\"article:published_time\" content=\"2013-02-20T14:20:18+00:00\" \/>\n<meta name=\"author\" content=\"g33kadmin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/drsinger1111\" \/>\n<meta name=\"twitter:site\" content=\"@drsinger1111\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/add-two-factor-ssh-authentication-with-authy\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/add-two-factor-ssh-authentication-with-authy\\\/\"},\"author\":{\"name\":\"g33kadmin\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#\\\/schema\\\/person\\\/c022e4c40b13ea1b678e6f020756f547\"},\"headline\":\"Add Two Factor SSH Authentication With Authy\",\"datePublished\":\"2013-02-20T14:20:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/add-two-factor-ssh-authentication-with-authy\\\/\"},\"wordCount\":232,\"publisher\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#\\\/schema\\\/person\\\/c022e4c40b13ea1b678e6f020756f547\"},\"articleSection\":[\"SSH\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/add-two-factor-ssh-authentication-with-authy\\\/\",\"url\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/add-two-factor-ssh-authentication-with-authy\\\/\",\"name\":\"Add Two Factor SSH Authentication With Authy - Linux Shtuff\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#website\"},\"datePublished\":\"2013-02-20T14:20:18+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/add-two-factor-ssh-authentication-with-authy\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/g33kinfo.com\\\/info\\\/add-two-factor-ssh-authentication-with-authy\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/add-two-factor-ssh-authentication-with-authy\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Add Two Factor SSH Authentication With Authy\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#website\",\"url\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/\",\"name\":\"Linux Shtuff\",\"description\":\"Because I have CRS Syndrome...\",\"publisher\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#\\\/schema\\\/person\\\/c022e4c40b13ea1b678e6f020756f547\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#\\\/schema\\\/person\\\/c022e4c40b13ea1b678e6f020756f547\",\"name\":\"g33kadmin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/minion-researchA.gif\",\"url\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/minion-researchA.gif\",\"contentUrl\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/minion-researchA.gif\",\"width\":512,\"height\":512,\"caption\":\"g33kadmin\"},\"logo\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/minion-researchA.gif\"},\"description\":\"I am a g33k, Linux blogger, developer, student and Tech Writer for Liquidweb.com\\\/kb. My passion for all things tech drives my hunt for all the coolz. I often need a vacation after I get back from vacation....\",\"sameAs\":[\"https:\\\/\\\/thelinuxreport.com\",\"https:\\\/\\\/fb.me\\\/g33kinf0\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/drsinger1111\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Add Two Factor SSH Authentication With Authy - Linux Shtuff","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/g33kinfo.com\/info\/add-two-factor-ssh-authentication-with-authy\/","og_locale":"en_US","og_type":"article","og_title":"Add Two Factor SSH Authentication With Authy - Linux Shtuff","og_description":"&nbsp; From blog.authy.com This is an excellent tool to implement 2 factor authentication on your server. Granted you will need your phone close by in order to login but if you have ever used RSA, this will be very familiar to you. You will need to sign up in order to use this. Once you... Read More","og_url":"https:\/\/g33kinfo.com\/info\/add-two-factor-ssh-authentication-with-authy\/","og_site_name":"Linux Shtuff","article_publisher":"https:\/\/fb.me\/g33kinf0","article_author":"https:\/\/fb.me\/g33kinf0","article_published_time":"2013-02-20T14:20:18+00:00","author":"g33kadmin","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/drsinger1111","twitter_site":"@drsinger1111","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/g33kinfo.com\/info\/add-two-factor-ssh-authentication-with-authy\/#article","isPartOf":{"@id":"https:\/\/g33kinfo.com\/info\/add-two-factor-ssh-authentication-with-authy\/"},"author":{"name":"g33kadmin","@id":"https:\/\/g33kinfo.com\/info\/#\/schema\/person\/c022e4c40b13ea1b678e6f020756f547"},"headline":"Add Two Factor SSH Authentication With Authy","datePublished":"2013-02-20T14:20:18+00:00","mainEntityOfPage":{"@id":"https:\/\/g33kinfo.com\/info\/add-two-factor-ssh-authentication-with-authy\/"},"wordCount":232,"publisher":{"@id":"https:\/\/g33kinfo.com\/info\/#\/schema\/person\/c022e4c40b13ea1b678e6f020756f547"},"articleSection":["SSH"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/g33kinfo.com\/info\/add-two-factor-ssh-authentication-with-authy\/","url":"https:\/\/g33kinfo.com\/info\/add-two-factor-ssh-authentication-with-authy\/","name":"Add Two Factor SSH Authentication With Authy - Linux Shtuff","isPartOf":{"@id":"https:\/\/g33kinfo.com\/info\/#website"},"datePublished":"2013-02-20T14:20:18+00:00","breadcrumb":{"@id":"https:\/\/g33kinfo.com\/info\/add-two-factor-ssh-authentication-with-authy\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/g33kinfo.com\/info\/add-two-factor-ssh-authentication-with-authy\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/g33kinfo.com\/info\/add-two-factor-ssh-authentication-with-authy\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/g33kinfo.com\/info\/"},{"@type":"ListItem","position":2,"name":"Add Two Factor SSH Authentication With Authy"}]},{"@type":"WebSite","@id":"https:\/\/g33kinfo.com\/info\/#website","url":"https:\/\/g33kinfo.com\/info\/","name":"Linux Shtuff","description":"Because I have CRS Syndrome...","publisher":{"@id":"https:\/\/g33kinfo.com\/info\/#\/schema\/person\/c022e4c40b13ea1b678e6f020756f547"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/g33kinfo.com\/info\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/g33kinfo.com\/info\/#\/schema\/person\/c022e4c40b13ea1b678e6f020756f547","name":"g33kadmin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/g33kinfo.com\/info\/wp-content\/uploads\/2022\/07\/minion-researchA.gif","url":"https:\/\/g33kinfo.com\/info\/wp-content\/uploads\/2022\/07\/minion-researchA.gif","contentUrl":"https:\/\/g33kinfo.com\/info\/wp-content\/uploads\/2022\/07\/minion-researchA.gif","width":512,"height":512,"caption":"g33kadmin"},"logo":{"@id":"https:\/\/g33kinfo.com\/info\/wp-content\/uploads\/2022\/07\/minion-researchA.gif"},"description":"I am a g33k, Linux blogger, developer, student and Tech Writer for Liquidweb.com\/kb. My passion for all things tech drives my hunt for all the coolz. I often need a vacation after I get back from vacation....","sameAs":["https:\/\/thelinuxreport.com","https:\/\/fb.me\/g33kinf0","https:\/\/x.com\/https:\/\/twitter.com\/drsinger1111"]}]}},"_links":{"self":[{"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/posts\/5370","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/comments?post=5370"}],"version-history":[{"count":0,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/posts\/5370\/revisions"}],"wp:attachment":[{"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/media?parent=5370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/categories?post=5370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/tags?post=5370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}