{"id":4777,"date":"2012-10-09T10:45:05","date_gmt":"2012-10-09T14:45:05","guid":{"rendered":"http:\/\/g33kinfo.com\/info\/?p=4777"},"modified":"2012-10-09T10:45:05","modified_gmt":"2012-10-09T14:45:05","slug":"key-based-ssh-authentication","status":"publish","type":"post","link":"https:\/\/g33kinfo.com\/info\/key-based-ssh-authentication\/","title":{"rendered":"key-based ssh authentication"},"content":{"rendered":"<p><a href=\"http:\/\/tarbackup.com\" target=\"_blank\" rel=\"noopener noreferrer\">tarbackup.com<\/a> &#8211; Simple tar backup for free forever <\/p>\n<p>&nbsp;<\/p>\n<p>A\u00a0<a href=\"http:\/\/www.reddit.com\/r\/linux\/comments\/10bf48\/follow_up_post_on_tarbackupcom_a_free_simple_open\/c6c24c2\" target=\"_blank\" rel=\"noopener noreferrer\">feature request<\/a>\u00a0for\u00a0<a href=\"https:\/\/tarbackup.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">tarbackup<\/a>\u00a0is using a private ssh key instead of a password to connect to the tarbackup server when using sftp to backup files. I&#8217;m happy to report that we now support public\/private keys for sftp authentication!<\/p>\n<p>To use an ssh key with tarbackup, first use this command to create your public\/private key-pair:<br \/>\n<code><br \/>\n# mkdir ~\/.ssh<br \/>\n# cd ~\/.ssh<br \/>\n# ssh-keygen -f tarbackup_rsa -C .youremail. -N . -t rsa -q<br \/>\n<\/code><\/p>\n<p>This will generate 2 files: tarbackup_rsa and tarbackup_rsa.pub. tarbackup_rsa is your private ssh key, you will keep this on your computer as proof that you are who you are. tarbackup_rsa.pub is a public key that you\u00a0<a href=\"https:\/\/tarbackup.com\/addkey.html\" target=\"_blank\" rel=\"noopener noreferrer\">send to the server<\/a>\u00a0so that tarbackup.com can authenticate you when you log in via sftp in the future.<\/p>\n<p>To use your private key to authenticate you when you login via sftp, you need to create an ssh_config file in your home directory with:<br \/>\n<code><br \/>\n# echo \"IdentityFile ~\/.ssh\/tarbackup_rsa\" &gt; ~\/ssh_config<br \/>\n<\/code><br \/>\nThis is the config file that specifies where your private ssh key is.<\/p>\n<p>You&#8217;ll pass the ssh_config file as a parameter to the sftp program when you connect to tarbackup.com via sftp:<br \/>\n<code><br \/>\n# sftp -F ~\/ssh_config account@tarbackup.com<br \/>\n<\/code><br \/>\n&nbsp;<\/p>\n<p>And that&#8217;s it! Let me know if you have any feedback or questions<a href=\"https:\/\/twitter.com\/davidnanch\/\">@davidnanch<\/a>.<\/p>\n<p>Reference:<a href=\"http:\/\/www.eng.cam.ac.uk\/help\/jpmg\/ssh\/authorized_keys_howto.html\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/www.eng.cam.ac.uk\/help\/jpmg\/ssh\/authorized_keys_howto.html<\/a><\/p>\n<p>&nbsp;<br \/>\n<a href=\"http:\/\/tarbackup.com\" target=\"_blank\" rel=\"noopener noreferrer\">tarbackup.com<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>tarbackup.com &#8211; Simple tar backup for free forever &nbsp; A\u00a0feature request\u00a0for\u00a0tarbackup\u00a0is using a private ssh key instead of a password to connect to the tarbackup server when using sftp to backup files. I&#8217;m happy to report that we now support public\/private keys for sftp authentication! To use an ssh key with tarbackup, first use this&#8230; <\/p>\n<div class=\"read-more navbutton\"><a href=\"https:\/\/g33kinfo.com\/info\/key-based-ssh-authentication\/\">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-4777","post","type-post","status-publish","format-standard","hentry","category-ssh"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>key-based ssh authentication - 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\/key-based-ssh-authentication\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"key-based ssh authentication - Linux Shtuff\" \/>\n<meta property=\"og:description\" content=\"tarbackup.com &#8211; Simple tar backup for free forever &nbsp; A\u00a0feature request\u00a0for\u00a0tarbackup\u00a0is using a private ssh key instead of a password to connect to the tarbackup server when using sftp to backup files. I&#8217;m happy to report that we now support public\/private keys for sftp authentication! To use an ssh key with tarbackup, first use this... Read More\" \/>\n<meta property=\"og:url\" content=\"https:\/\/g33kinfo.com\/info\/key-based-ssh-authentication\/\" \/>\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=\"2012-10-09T14:45:05+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\\\/key-based-ssh-authentication\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/key-based-ssh-authentication\\\/\"},\"author\":{\"name\":\"g33kadmin\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#\\\/schema\\\/person\\\/c022e4c40b13ea1b678e6f020756f547\"},\"headline\":\"key-based ssh authentication\",\"datePublished\":\"2012-10-09T14:45:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/key-based-ssh-authentication\\\/\"},\"wordCount\":227,\"publisher\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#\\\/schema\\\/person\\\/c022e4c40b13ea1b678e6f020756f547\"},\"articleSection\":[\"SSH\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/key-based-ssh-authentication\\\/\",\"url\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/key-based-ssh-authentication\\\/\",\"name\":\"key-based ssh authentication - Linux Shtuff\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#website\"},\"datePublished\":\"2012-10-09T14:45:05+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/key-based-ssh-authentication\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/g33kinfo.com\\\/info\\\/key-based-ssh-authentication\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/key-based-ssh-authentication\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"key-based ssh authentication\"}]},{\"@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":"key-based ssh authentication - 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\/key-based-ssh-authentication\/","og_locale":"en_US","og_type":"article","og_title":"key-based ssh authentication - Linux Shtuff","og_description":"tarbackup.com &#8211; Simple tar backup for free forever &nbsp; A\u00a0feature request\u00a0for\u00a0tarbackup\u00a0is using a private ssh key instead of a password to connect to the tarbackup server when using sftp to backup files. I&#8217;m happy to report that we now support public\/private keys for sftp authentication! To use an ssh key with tarbackup, first use this... Read More","og_url":"https:\/\/g33kinfo.com\/info\/key-based-ssh-authentication\/","og_site_name":"Linux Shtuff","article_publisher":"https:\/\/fb.me\/g33kinf0","article_author":"https:\/\/fb.me\/g33kinf0","article_published_time":"2012-10-09T14:45:05+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\/key-based-ssh-authentication\/#article","isPartOf":{"@id":"https:\/\/g33kinfo.com\/info\/key-based-ssh-authentication\/"},"author":{"name":"g33kadmin","@id":"https:\/\/g33kinfo.com\/info\/#\/schema\/person\/c022e4c40b13ea1b678e6f020756f547"},"headline":"key-based ssh authentication","datePublished":"2012-10-09T14:45:05+00:00","mainEntityOfPage":{"@id":"https:\/\/g33kinfo.com\/info\/key-based-ssh-authentication\/"},"wordCount":227,"publisher":{"@id":"https:\/\/g33kinfo.com\/info\/#\/schema\/person\/c022e4c40b13ea1b678e6f020756f547"},"articleSection":["SSH"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/g33kinfo.com\/info\/key-based-ssh-authentication\/","url":"https:\/\/g33kinfo.com\/info\/key-based-ssh-authentication\/","name":"key-based ssh authentication - Linux Shtuff","isPartOf":{"@id":"https:\/\/g33kinfo.com\/info\/#website"},"datePublished":"2012-10-09T14:45:05+00:00","breadcrumb":{"@id":"https:\/\/g33kinfo.com\/info\/key-based-ssh-authentication\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/g33kinfo.com\/info\/key-based-ssh-authentication\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/g33kinfo.com\/info\/key-based-ssh-authentication\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/g33kinfo.com\/info\/"},{"@type":"ListItem","position":2,"name":"key-based ssh authentication"}]},{"@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\/4777","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=4777"}],"version-history":[{"count":0,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/posts\/4777\/revisions"}],"wp:attachment":[{"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/media?parent=4777"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/categories?post=4777"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/tags?post=4777"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}