{"id":1189,"date":"2017-05-26T21:46:34","date_gmt":"2017-05-26T13:46:34","guid":{"rendered":"http:\/\/blog.amjet.biz\/IT\/?p=1189"},"modified":"2017-05-26T22:11:42","modified_gmt":"2017-05-26T14:11:42","slug":"ssh-%e4%bb%a5-public-key-%e7%99%bb%e5%85%a5","status":"publish","type":"post","link":"https:\/\/blog.amjet.biz\/IT\/?p=1189","title":{"rendered":"SSH \u4ee5 public key \u767b\u5165"},"content":{"rendered":"<p>\u6b65\u9a5f1: \u4ee5 <a href=\"https:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/latest.html\" target=\"_blank\" rel=\"noopener noreferrer\">puttygen<\/a> \u7a0b\u5f0f\u7522\u751f public\u3001private key pair\uff0c\u5c07 public key \u5b57\u4e32\u5b58\u5165 &lt;USER_HOME&gt;\/.ssh\/authorized_keys\uff0cprivate key \u5b58\u5728\u672c\u6a5f mykey.ppk<\/p>\n<p>\u6b65\u9a5f2:\u4fee\u6539 putty \u7684 session \u8a2d\u5b9a Connection &gt; Data &gt; Auto-login username \u586b\u5165\u81ea\u5df1\u7684\u767b\u5165\u5e33\u865f\uff0cConnection &gt; SSH &gt; Auth &gt; Private key file \u9078\u64c7\u525b\u7522\u751f\u7684 mykey.ppk<\/p>\n<p>\u8a3b1: \u8acb\u6ce8\u610f sshd_config \u7684\u00a0AuthorizedKeysFile \u8a2d\u5b9a\u662f\u5426\u70ba\u00a0.ssh\/authorized_keys\uff0c\u5982\u679c\u4e0d\u662f public key \u7684\u5b58\u653e\u4f4d\u7f6e\u8981\u4f9d\u8a2d\u5b9a\u5b58\u653e<\/p>\n<p>\u8a3b2: &lt;USER_HOME&gt;\/.ssh mode \u5fc5\u9808\u70ba 700\uff0cauthorized_keys mod \u5fc5\u9808\u70ba 600<\/p>\n<p>\u8a3b3:\u5982\u679c\u767b\u5165\u6642\u51fa\u73fe &#8216;Server refused our key&#8217; \u7684\u932f\u8aa4\uff0c\u8acb\u5229\u7528 puttygen \u9078\u55ae Conversions &gt; Export OpenSSH key \u529f\u80fd\u9032\u884c\u8f49\u63db<\/p>\n<p>[ratings]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6b65\u9a5f1: \u4ee5 puttygen \u7a0b\u5f0f\u7522\u751f public\u3001private key pair\uff0c\u5c07 public key \u5b57\u4e32\u5b58\u5165 &lt;USER_HOME&gt;\/.ssh\/authorized_keys\uff0cprivate key \u5b58\u5728\u672c\u6a5f mykey.ppk \u6b65\u9a5f2:\u4fee\u6539 putty \u7684 session \u8a2d\u5b9a Connection &gt; Data &gt; Auto-login username \u586b\u5165\u81ea\u5df1\u7684\u767b\u5165\u5e33\u865f\uff0cConnection &gt; SSH &gt; Auth &gt; Private key file \u9078\u64c7\u525b\u7522\u751f\u7684 mykey.ppk \u8a3b1: \u8acb\u6ce8\u610f sshd_config \u7684\u00a0AuthorizedKeysFile \u8a2d\u5b9a\u662f\u5426\u70ba\u00a0.ssh\/authorized_keys\uff0c\u5982\u679c\u4e0d\u662f public key \u7684\u5b58\u653e\u4f4d\u7f6e\u8981\u4f9d\u8a2d\u5b9a\u5b58\u653e \u8a3b2: &lt;USER_HOME&gt;\/.ssh mode \u5fc5\u9808\u70ba 700\uff0cauthorized_keys mod \u5fc5\u9808\u70ba 600 \u8a3b3:\u5982\u679c\u767b\u5165\u6642\u51fa\u73fe &#8216;Server refused [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[151],"class_list":["post-1189","post","type-post","status-publish","format-standard","hentry","category-system","tag-ssh"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u6b65\u9a5f1: \u4ee5 puttygen \u7a0b\u5f0f\u7522\u751f public\u3001private key pair\uff0c\u5c07 public key \u5b57\u4e32\u5b58\u5165 \/.ssh\/authorized_keys\uff0cprivate key \u5b58\u5728\u672c\u6a5f mykey.ppk \u6b65\u9a5f2:\u4fee\u6539 putty \u7684 session \u8a2d\u5b9a Connection &gt; Data &gt; Auto-login username \u586b\u5165\u81ea\u5df1\u7684\u767b\u5165\u5e33\u865f\uff0cConnection &gt; SSH &gt; Auth &gt; Private key file \u9078\u64c7\u525b\u7522\u751f\u7684 mykey.ppk \u8a3b1: \u8acb\u6ce8\u610f sshd_config \u7684 AuthorizedKeysFile \u8a2d\u5b9a\u662f\u5426\u70ba .ssh\/authorized_keys\uff0c\u5982\u679c\u4e0d\u662f public key \u7684\u5b58\u653e\u4f4d\u7f6e\u8981\u4f9d\u8a2d\u5b9a\u5b58\u653e \u8a3b2: \/.ssh mode \u5fc5\u9808\u70ba 700\uff0cauthorized_keys mod \u5fc5\u9808\u70ba 600 \u8a3b3:\u5982\u679c\u767b\u5165\u6642\u51fa\u73fe &#039;Server refused\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"vincent\"\/>\n\t<meta name=\"keywords\" content=\"ssh,public key,ssh\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/blog.amjet.biz\/IT\/?p=1189\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"AmJet IT Blog | for IT professionals\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"SSH \u4ee5 public key \u767b\u5165 | AmJet IT Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"\u6b65\u9a5f1: \u4ee5 puttygen \u7a0b\u5f0f\u7522\u751f public\u3001private key pair\uff0c\u5c07 public key \u5b57\u4e32\u5b58\u5165 \/.ssh\/authorized_keys\uff0cprivate key \u5b58\u5728\u672c\u6a5f mykey.ppk \u6b65\u9a5f2:\u4fee\u6539 putty \u7684 session \u8a2d\u5b9a Connection &gt; Data &gt; Auto-login username \u586b\u5165\u81ea\u5df1\u7684\u767b\u5165\u5e33\u865f\uff0cConnection &gt; SSH &gt; Auth &gt; Private key file \u9078\u64c7\u525b\u7522\u751f\u7684 mykey.ppk \u8a3b1: \u8acb\u6ce8\u610f sshd_config \u7684 AuthorizedKeysFile \u8a2d\u5b9a\u662f\u5426\u70ba .ssh\/authorized_keys\uff0c\u5982\u679c\u4e0d\u662f public key \u7684\u5b58\u653e\u4f4d\u7f6e\u8981\u4f9d\u8a2d\u5b9a\u5b58\u653e \u8a3b2: \/.ssh mode \u5fc5\u9808\u70ba 700\uff0cauthorized_keys mod \u5fc5\u9808\u70ba 600 \u8a3b3:\u5982\u679c\u767b\u5165\u6642\u51fa\u73fe &#039;Server refused\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/blog.amjet.biz\/IT\/?p=1189\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2017-05-26T13:46:34+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2017-05-26T14:11:42+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"SSH \u4ee5 public key \u767b\u5165 | AmJet IT Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"\u6b65\u9a5f1: \u4ee5 puttygen \u7a0b\u5f0f\u7522\u751f public\u3001private key pair\uff0c\u5c07 public key \u5b57\u4e32\u5b58\u5165 \/.ssh\/authorized_keys\uff0cprivate key \u5b58\u5728\u672c\u6a5f mykey.ppk \u6b65\u9a5f2:\u4fee\u6539 putty \u7684 session \u8a2d\u5b9a Connection &gt; Data &gt; Auto-login username \u586b\u5165\u81ea\u5df1\u7684\u767b\u5165\u5e33\u865f\uff0cConnection &gt; SSH &gt; Auth &gt; Private key file \u9078\u64c7\u525b\u7522\u751f\u7684 mykey.ppk \u8a3b1: \u8acb\u6ce8\u610f sshd_config \u7684 AuthorizedKeysFile \u8a2d\u5b9a\u662f\u5426\u70ba .ssh\/authorized_keys\uff0c\u5982\u679c\u4e0d\u662f public key \u7684\u5b58\u653e\u4f4d\u7f6e\u8981\u4f9d\u8a2d\u5b9a\u5b58\u653e \u8a3b2: \/.ssh mode \u5fc5\u9808\u70ba 700\uff0cauthorized_keys mod \u5fc5\u9808\u70ba 600 \u8a3b3:\u5982\u679c\u767b\u5165\u6642\u51fa\u73fe &#039;Server refused\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?p=1189#article\",\"name\":\"SSH \\u4ee5 public key \\u767b\\u5165 | AmJet IT Blog\",\"headline\":\"SSH \\u4ee5 public key \\u767b\\u5165\",\"author\":{\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?author=2#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/#organization\"},\"datePublished\":\"2017-05-26T21:46:34+08:00\",\"dateModified\":\"2017-05-26T22:11:42+08:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?p=1189#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?p=1189#webpage\"},\"articleSection\":\"System, ssh\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?p=1189#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?cat=9#listItem\",\"name\":\"System\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?cat=9#listItem\",\"position\":2,\"name\":\"System\",\"item\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?cat=9\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?p=1189#listItem\",\"name\":\"SSH \\u4ee5 public key \\u767b\\u5165\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?p=1189#listItem\",\"position\":3,\"name\":\"SSH \\u4ee5 public key \\u767b\\u5165\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?cat=9#listItem\",\"name\":\"System\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/#organization\",\"name\":\"AmJet Digital\",\"description\":\"for IT professionals\",\"url\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?author=2#author\",\"url\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?author=2\",\"name\":\"vincent\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?p=1189#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8c6bcd6e8e7e1c9bce74184354da4a5c294d71657c7abc161841c4799d1b1a46?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"vincent\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?p=1189#webpage\",\"url\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?p=1189\",\"name\":\"SSH \\u4ee5 public key \\u767b\\u5165 | AmJet IT Blog\",\"description\":\"\\u6b65\\u9a5f1: \\u4ee5 puttygen \\u7a0b\\u5f0f\\u7522\\u751f public\\u3001private key pair\\uff0c\\u5c07 public key \\u5b57\\u4e32\\u5b58\\u5165 \\\/.ssh\\\/authorized_keys\\uff0cprivate key \\u5b58\\u5728\\u672c\\u6a5f mykey.ppk \\u6b65\\u9a5f2:\\u4fee\\u6539 putty \\u7684 session \\u8a2d\\u5b9a Connection > Data > Auto-login username \\u586b\\u5165\\u81ea\\u5df1\\u7684\\u767b\\u5165\\u5e33\\u865f\\uff0cConnection > SSH > Auth > Private key file \\u9078\\u64c7\\u525b\\u7522\\u751f\\u7684 mykey.ppk \\u8a3b1: \\u8acb\\u6ce8\\u610f sshd_config \\u7684 AuthorizedKeysFile \\u8a2d\\u5b9a\\u662f\\u5426\\u70ba .ssh\\\/authorized_keys\\uff0c\\u5982\\u679c\\u4e0d\\u662f public key \\u7684\\u5b58\\u653e\\u4f4d\\u7f6e\\u8981\\u4f9d\\u8a2d\\u5b9a\\u5b58\\u653e \\u8a3b2: \\\/.ssh mode \\u5fc5\\u9808\\u70ba 700\\uff0cauthorized_keys mod \\u5fc5\\u9808\\u70ba 600 \\u8a3b3:\\u5982\\u679c\\u767b\\u5165\\u6642\\u51fa\\u73fe 'Server refused\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?p=1189#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?author=2#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?author=2#author\"},\"datePublished\":\"2017-05-26T21:46:34+08:00\",\"dateModified\":\"2017-05-26T22:11:42+08:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/#website\",\"url\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/\",\"name\":\"AmJet IT Blog\",\"description\":\"for IT professionals\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"SSH \u4ee5 public key \u767b\u5165 | AmJet IT Blog","description":"\u6b65\u9a5f1: \u4ee5 puttygen \u7a0b\u5f0f\u7522\u751f public\u3001private key pair\uff0c\u5c07 public key \u5b57\u4e32\u5b58\u5165 \/.ssh\/authorized_keys\uff0cprivate key \u5b58\u5728\u672c\u6a5f mykey.ppk \u6b65\u9a5f2:\u4fee\u6539 putty \u7684 session \u8a2d\u5b9a Connection > Data > Auto-login username \u586b\u5165\u81ea\u5df1\u7684\u767b\u5165\u5e33\u865f\uff0cConnection > SSH > Auth > Private key file \u9078\u64c7\u525b\u7522\u751f\u7684 mykey.ppk \u8a3b1: \u8acb\u6ce8\u610f sshd_config \u7684 AuthorizedKeysFile \u8a2d\u5b9a\u662f\u5426\u70ba .ssh\/authorized_keys\uff0c\u5982\u679c\u4e0d\u662f public key \u7684\u5b58\u653e\u4f4d\u7f6e\u8981\u4f9d\u8a2d\u5b9a\u5b58\u653e \u8a3b2: \/.ssh mode \u5fc5\u9808\u70ba 700\uff0cauthorized_keys mod \u5fc5\u9808\u70ba 600 \u8a3b3:\u5982\u679c\u767b\u5165\u6642\u51fa\u73fe 'Server refused","canonical_url":"https:\/\/blog.amjet.biz\/IT\/?p=1189","robots":"max-image-preview:large","keywords":"ssh,public key,ssh","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.amjet.biz\/IT\/?p=1189#article","name":"SSH \u4ee5 public key \u767b\u5165 | AmJet IT Blog","headline":"SSH \u4ee5 public key \u767b\u5165","author":{"@id":"https:\/\/blog.amjet.biz\/IT\/?author=2#author"},"publisher":{"@id":"https:\/\/blog.amjet.biz\/IT\/#organization"},"datePublished":"2017-05-26T21:46:34+08:00","dateModified":"2017-05-26T22:11:42+08:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/blog.amjet.biz\/IT\/?p=1189#webpage"},"isPartOf":{"@id":"https:\/\/blog.amjet.biz\/IT\/?p=1189#webpage"},"articleSection":"System, ssh"},{"@type":"BreadcrumbList","@id":"https:\/\/blog.amjet.biz\/IT\/?p=1189#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/blog.amjet.biz\/IT#listItem","position":1,"name":"Home","item":"https:\/\/blog.amjet.biz\/IT","nextItem":{"@type":"ListItem","@id":"https:\/\/blog.amjet.biz\/IT\/?cat=9#listItem","name":"System"}},{"@type":"ListItem","@id":"https:\/\/blog.amjet.biz\/IT\/?cat=9#listItem","position":2,"name":"System","item":"https:\/\/blog.amjet.biz\/IT\/?cat=9","nextItem":{"@type":"ListItem","@id":"https:\/\/blog.amjet.biz\/IT\/?p=1189#listItem","name":"SSH \u4ee5 public key \u767b\u5165"},"previousItem":{"@type":"ListItem","@id":"https:\/\/blog.amjet.biz\/IT#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/blog.amjet.biz\/IT\/?p=1189#listItem","position":3,"name":"SSH \u4ee5 public key \u767b\u5165","previousItem":{"@type":"ListItem","@id":"https:\/\/blog.amjet.biz\/IT\/?cat=9#listItem","name":"System"}}]},{"@type":"Organization","@id":"https:\/\/blog.amjet.biz\/IT\/#organization","name":"AmJet Digital","description":"for IT professionals","url":"https:\/\/blog.amjet.biz\/IT\/"},{"@type":"Person","@id":"https:\/\/blog.amjet.biz\/IT\/?author=2#author","url":"https:\/\/blog.amjet.biz\/IT\/?author=2","name":"vincent","image":{"@type":"ImageObject","@id":"https:\/\/blog.amjet.biz\/IT\/?p=1189#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/8c6bcd6e8e7e1c9bce74184354da4a5c294d71657c7abc161841c4799d1b1a46?s=96&d=mm&r=g","width":96,"height":96,"caption":"vincent"}},{"@type":"WebPage","@id":"https:\/\/blog.amjet.biz\/IT\/?p=1189#webpage","url":"https:\/\/blog.amjet.biz\/IT\/?p=1189","name":"SSH \u4ee5 public key \u767b\u5165 | AmJet IT Blog","description":"\u6b65\u9a5f1: \u4ee5 puttygen \u7a0b\u5f0f\u7522\u751f public\u3001private key pair\uff0c\u5c07 public key \u5b57\u4e32\u5b58\u5165 \/.ssh\/authorized_keys\uff0cprivate key \u5b58\u5728\u672c\u6a5f mykey.ppk \u6b65\u9a5f2:\u4fee\u6539 putty \u7684 session \u8a2d\u5b9a Connection > Data > Auto-login username \u586b\u5165\u81ea\u5df1\u7684\u767b\u5165\u5e33\u865f\uff0cConnection > SSH > Auth > Private key file \u9078\u64c7\u525b\u7522\u751f\u7684 mykey.ppk \u8a3b1: \u8acb\u6ce8\u610f sshd_config \u7684 AuthorizedKeysFile \u8a2d\u5b9a\u662f\u5426\u70ba .ssh\/authorized_keys\uff0c\u5982\u679c\u4e0d\u662f public key \u7684\u5b58\u653e\u4f4d\u7f6e\u8981\u4f9d\u8a2d\u5b9a\u5b58\u653e \u8a3b2: \/.ssh mode \u5fc5\u9808\u70ba 700\uff0cauthorized_keys mod \u5fc5\u9808\u70ba 600 \u8a3b3:\u5982\u679c\u767b\u5165\u6642\u51fa\u73fe 'Server refused","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/blog.amjet.biz\/IT\/#website"},"breadcrumb":{"@id":"https:\/\/blog.amjet.biz\/IT\/?p=1189#breadcrumblist"},"author":{"@id":"https:\/\/blog.amjet.biz\/IT\/?author=2#author"},"creator":{"@id":"https:\/\/blog.amjet.biz\/IT\/?author=2#author"},"datePublished":"2017-05-26T21:46:34+08:00","dateModified":"2017-05-26T22:11:42+08:00"},{"@type":"WebSite","@id":"https:\/\/blog.amjet.biz\/IT\/#website","url":"https:\/\/blog.amjet.biz\/IT\/","name":"AmJet IT Blog","description":"for IT professionals","inLanguage":"en-US","publisher":{"@id":"https:\/\/blog.amjet.biz\/IT\/#organization"}}]},"og:locale":"en_US","og:site_name":"AmJet IT Blog | for IT professionals","og:type":"article","og:title":"SSH \u4ee5 public key \u767b\u5165 | AmJet IT Blog","og:description":"\u6b65\u9a5f1: \u4ee5 puttygen \u7a0b\u5f0f\u7522\u751f public\u3001private key pair\uff0c\u5c07 public key \u5b57\u4e32\u5b58\u5165 \/.ssh\/authorized_keys\uff0cprivate key \u5b58\u5728\u672c\u6a5f mykey.ppk \u6b65\u9a5f2:\u4fee\u6539 putty \u7684 session \u8a2d\u5b9a Connection &gt; Data &gt; Auto-login username \u586b\u5165\u81ea\u5df1\u7684\u767b\u5165\u5e33\u865f\uff0cConnection &gt; SSH &gt; Auth &gt; Private key file \u9078\u64c7\u525b\u7522\u751f\u7684 mykey.ppk \u8a3b1: \u8acb\u6ce8\u610f sshd_config \u7684 AuthorizedKeysFile \u8a2d\u5b9a\u662f\u5426\u70ba .ssh\/authorized_keys\uff0c\u5982\u679c\u4e0d\u662f public key \u7684\u5b58\u653e\u4f4d\u7f6e\u8981\u4f9d\u8a2d\u5b9a\u5b58\u653e \u8a3b2: \/.ssh mode \u5fc5\u9808\u70ba 700\uff0cauthorized_keys mod \u5fc5\u9808\u70ba 600 \u8a3b3:\u5982\u679c\u767b\u5165\u6642\u51fa\u73fe 'Server refused","og:url":"https:\/\/blog.amjet.biz\/IT\/?p=1189","article:published_time":"2017-05-26T13:46:34+00:00","article:modified_time":"2017-05-26T14:11:42+00:00","twitter:card":"summary","twitter:title":"SSH \u4ee5 public key \u767b\u5165 | AmJet IT Blog","twitter:description":"\u6b65\u9a5f1: \u4ee5 puttygen \u7a0b\u5f0f\u7522\u751f public\u3001private key pair\uff0c\u5c07 public key \u5b57\u4e32\u5b58\u5165 \/.ssh\/authorized_keys\uff0cprivate key \u5b58\u5728\u672c\u6a5f mykey.ppk \u6b65\u9a5f2:\u4fee\u6539 putty \u7684 session \u8a2d\u5b9a Connection &gt; Data &gt; Auto-login username \u586b\u5165\u81ea\u5df1\u7684\u767b\u5165\u5e33\u865f\uff0cConnection &gt; SSH &gt; Auth &gt; Private key file \u9078\u64c7\u525b\u7522\u751f\u7684 mykey.ppk \u8a3b1: \u8acb\u6ce8\u610f sshd_config \u7684 AuthorizedKeysFile \u8a2d\u5b9a\u662f\u5426\u70ba .ssh\/authorized_keys\uff0c\u5982\u679c\u4e0d\u662f public key \u7684\u5b58\u653e\u4f4d\u7f6e\u8981\u4f9d\u8a2d\u5b9a\u5b58\u653e \u8a3b2: \/.ssh mode \u5fc5\u9808\u70ba 700\uff0cauthorized_keys mod \u5fc5\u9808\u70ba 600 \u8a3b3:\u5982\u679c\u767b\u5165\u6642\u51fa\u73fe 'Server refused"},"aioseo_meta_data":{"post_id":"1189","title":"SSH \u4ee5 public key \u767b\u5165 | #site_title","description":null,"keywords":[{"label":"ssh,public key","value":"ssh,public key"}],"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2020-12-23 23:27:41","updated":"2025-06-05 09:46:40","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/blog.amjet.biz\/IT\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/blog.amjet.biz\/IT\/?cat=9\" title=\"System\">System<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tSSH \u4ee5 public key \u767b\u5165\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/blog.amjet.biz\/IT"},{"label":"System","link":"https:\/\/blog.amjet.biz\/IT\/?cat=9"},{"label":"SSH \u4ee5 public key \u767b\u5165","link":"https:\/\/blog.amjet.biz\/IT\/?p=1189"}],"_links":{"self":[{"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/posts\/1189","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1189"}],"version-history":[{"count":4,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/posts\/1189\/revisions"}],"predecessor-version":[{"id":1194,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/posts\/1189\/revisions\/1194"}],"wp:attachment":[{"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}