{"id":29005,"date":"2025-04-20T05:16:10","date_gmt":"2025-04-19T21:16:10","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/29005.html"},"modified":"2025-04-20T05:16:10","modified_gmt":"2025-04-19T21:16:10","slug":"openssh%e7%94%9f%e6%88%90ed25519%e7%9a%84%e5%af%86%e9%92%a5%e5%af%b9%e5%b9%b6%e5%ae%9e%e7%8e%b0%e6%9c%8d%e5%8a%a1%e5%99%a8%e9%97%b4%e5%85%8d%e5%af%86%e9%92%a5%e7%99%bb%e5%bd%95","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/29005.html","title":{"rendered":"openssh\u751f\u6210ed25519\u7684\u5bc6\u94a5\u5bf9\u5e76\u5b9e\u73b0\u670d\u52a1\u5668\u95f4\u514d\u5bc6\u94a5\u767b\u5f55"},"content":{"rendered":"<p>\u672c\u6587\u8bb2\u89e3\u5982\u4f55\u7528openssh\u751f\u6210ed25519\u7684\u5bc6\u94a5\u5bf9\u5e76\u5b9e\u73b0\u670d\u52a1\u5668\u95f4\u514d\u5bc6\u94a5\u767b\u5f55\u3002<\/p>\n<p><span style=\"color:#fe2c24\">\u6ce8\u610f&#xff1a;\u6240\u6709\u64cd\u4f5c\u5747\u5728\u5ba2\u6237\u673a\u4fa7<\/span><\/p>\n<p>\u4e00\u3001\u751f\u6210 ED25519 \u5bc6\u94a5<\/p>\n<p>\u7528\u9700\u8981\u514d\u5bc6\u767b\u5f55\u7684\u7528\u6237&#xff08;\u672c\u4f8b\u4e3ausername&#xff09; \u8fd0\u884c\u201cssh-keygen -t ed25519 -b 256\u201d<\/p>\n<p>[username&#064;localhost ~]$ ssh-keygen -t ed25519 -b 256<br \/>\nGenerating public\/private ed25519 key pair.<br \/>\nEnter file in which to save the key (\/home\/username\/.ssh\/id_ed25519):<br \/>\nEnter passphrase (empty for no passphrase):<br \/>\nEnter same passphrase again:<br \/>\nYour identification has been saved in \/home\/username\/.ssh\/id_ed25519<br \/>\nYour public key has been saved in \/home\/username\/.ssh\/id_ed25519.pub<br \/>\nThe key fingerprint is:<br \/>\nSHA256:TxLFDN0ERV3qM7d0OfTXCylXHrXQilvZTymabIcYhTE username&#064;localhost.localdomain<br \/>\nThe key&#039;s randomart image is:<br \/>\n&#043;&#8211;[ED25519 256]&#8211;&#043;<br \/>\n|        .E&#061;*&#043;o..o|<br \/>\n|         o&#061;.. ooo|<br \/>\n|        . . . &#061;&#061;.|<br \/>\n|         o . *&#061;o*|<br \/>\n|        S &#061;.*&#043;&#061;*B|<br \/>\n|         &#061; Bo.o&#043;B|<br \/>\n|          o .  o |<br \/>\n|                 |<br \/>\n|                 |<br \/>\n&#043;&#8212;-[SHA256]&#8212;&#8211;&#043;<br \/>\n[username&#064;localhost ~]$ <\/p>\n<p>\u4e00\u8def\u56de\u8f66&#xff0c;\u5373\u53ef\u770b\u5230\u5728\u5f53\u524d\u7528\u6237\u5bb6\u76ee\u5f55\u4e0b\u751f\u6210\u4e86.ssh\/id_ed25519\u7684\u79c1\u94a5\u548c.ssh\/id_ed25519.pub\u516c\u94a5\u6587\u4ef6<\/p>\n<p>\u4e8c\u3001\u5c06\u516c\u94a5\u6587\u4ef6\u4f20\u7ed9\u8fdc\u7aef\u670d\u52a1\u5668\u5bf9\u5e94\u5e10\u53f7<\/p>\n<p>\u4f7f\u7528\u00a0ssh-copy-id\u00a0\u547d\u4ee4\u6765\u5b8c\u6210<\/p>\n<p>[username&#064;localhost ~]$ ssh-copy-id -i ~\/.ssh\/id_ed25519 -p4422 username&#064;192.168.1.76<br \/>\n\/bin\/ssh-copy-id: INFO: Source of key(s) to be installed: &#034;\/home\/username\/.ssh\/id_ed25519.pub&#034;<br \/>\n\/bin\/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed<br \/>\n\/bin\/ssh-copy-id: INFO: 1 key(s) remain to be installed &#8212; if you are prompted now it is to install the new keys<br \/>\n(username&#064;192.168.1.76) Password: <\/p>\n<p>Number of key(s) added: 1<\/p>\n<p>Now try logging into the machine, with:   &#034;ssh -p 4422 &#039;username&#064;192.168.1.76&#039;&#034;<br \/>\nand check to make sure that only the key(s) you wanted were added.<\/p>\n<p>[username&#064;localhost ~]$  <\/p>\n<p>\u4e09\u3001\u6d4b\u8bd5\u9a8c\u8bc1<\/p>\n<p>[username&#064;localhost ~]$ ssh -p4422 username&#064;192.168.1.75<br \/>\nLast login: Tue May 28 17:22:38 2024<br \/>\nAuthorized users only. All activities may be monitored and reported.<br \/>\n[username&#064;localhost ~]$ <\/p>\n<p>\u53ef\u4ee5\u770b\u5230&#xff0c;\u73b0\u5728\u5df2\u7ecf\u4e0d\u9700\u8981\u5bc6\u7801\u5373\u53ef\u4ee5\u767b\u5f55\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb4.3k\u6b21\uff0c\u70b9\u8d5e4\u6b21\uff0c\u6536\u85cf4\u6b21\u3002\u672c\u6587\u8bb2\u89e3\u5982\u4f55\u7528openssh\u751f\u6210ed25519\u7684\u5bc6\u94a5\u5bf9\u5e76\u5b9e\u73b0\u670d\u52a1\u5668\u95f4\u514d\u5bc6\u94a5\u767b\u5f55\u3002_ssh-keygen -t ed25519<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,43,44],"topic":[],"class_list":["post-29005","post","type-post","status-publish","format-standard","hentry","category-server","tag-linux","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>openssh\u751f\u6210ed25519\u7684\u5bc6\u94a5\u5bf9\u5e76\u5b9e\u73b0\u670d\u52a1\u5668\u95f4\u514d\u5bc6\u94a5\u767b\u5f55 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/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:\/\/www.wsisp.com\/helps\/29005.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"openssh\u751f\u6210ed25519\u7684\u5bc6\u94a5\u5bf9\u5e76\u5b9e\u73b0\u670d\u52a1\u5668\u95f4\u514d\u5bc6\u94a5\u767b\u5f55 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb4.3k\u6b21\uff0c\u70b9\u8d5e4\u6b21\uff0c\u6536\u85cf4\u6b21\u3002\u672c\u6587\u8bb2\u89e3\u5982\u4f55\u7528openssh\u751f\u6210ed25519\u7684\u5bc6\u94a5\u5bf9\u5e76\u5b9e\u73b0\u670d\u52a1\u5668\u95f4\u514d\u5bc6\u94a5\u767b\u5f55\u3002_ssh-keygen -t ed25519\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/29005.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-19T21:16:10+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/29005.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/29005.html\",\"name\":\"openssh\u751f\u6210ed25519\u7684\u5bc6\u94a5\u5bf9\u5e76\u5b9e\u73b0\u670d\u52a1\u5668\u95f4\u514d\u5bc6\u94a5\u767b\u5f55 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-19T21:16:10+00:00\",\"dateModified\":\"2025-04-19T21:16:10+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/29005.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/29005.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/29005.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"openssh\u751f\u6210ed25519\u7684\u5bc6\u94a5\u5bf9\u5e76\u5b9e\u73b0\u670d\u52a1\u5668\u95f4\u514d\u5bc6\u94a5\u767b\u5f55\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"openssh\u751f\u6210ed25519\u7684\u5bc6\u94a5\u5bf9\u5e76\u5b9e\u73b0\u670d\u52a1\u5668\u95f4\u514d\u5bc6\u94a5\u767b\u5f55 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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:\/\/www.wsisp.com\/helps\/29005.html","og_locale":"zh_CN","og_type":"article","og_title":"openssh\u751f\u6210ed25519\u7684\u5bc6\u94a5\u5bf9\u5e76\u5b9e\u73b0\u670d\u52a1\u5668\u95f4\u514d\u5bc6\u94a5\u767b\u5f55 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb4.3k\u6b21\uff0c\u70b9\u8d5e4\u6b21\uff0c\u6536\u85cf4\u6b21\u3002\u672c\u6587\u8bb2\u89e3\u5982\u4f55\u7528openssh\u751f\u6210ed25519\u7684\u5bc6\u94a5\u5bf9\u5e76\u5b9e\u73b0\u670d\u52a1\u5668\u95f4\u514d\u5bc6\u94a5\u767b\u5f55\u3002_ssh-keygen -t ed25519","og_url":"https:\/\/www.wsisp.com\/helps\/29005.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-19T21:16:10+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/29005.html","url":"https:\/\/www.wsisp.com\/helps\/29005.html","name":"openssh\u751f\u6210ed25519\u7684\u5bc6\u94a5\u5bf9\u5e76\u5b9e\u73b0\u670d\u52a1\u5668\u95f4\u514d\u5bc6\u94a5\u767b\u5f55 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-19T21:16:10+00:00","dateModified":"2025-04-19T21:16:10+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/29005.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/29005.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/29005.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"openssh\u751f\u6210ed25519\u7684\u5bc6\u94a5\u5bf9\u5e76\u5b9e\u73b0\u670d\u52a1\u5668\u95f4\u514d\u5bc6\u94a5\u767b\u5f55"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/29005","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=29005"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/29005\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=29005"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=29005"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=29005"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=29005"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}