{"id":1927,"date":"2024-02-17T20:32:08","date_gmt":"2024-02-17T20:32:08","guid":{"rendered":"https:\/\/blog.kimi.ee\/?p=1927"},"modified":"2024-02-18T19:11:04","modified_gmt":"2024-02-18T19:11:04","slug":"%e3%80%90%e5%a4%87%e4%bb%bd%e3%80%91%e4%b8%a4%e5%8f%b0%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%b9%8b%e9%97%b4%e5%a6%82%e4%bd%95%e8%ae%be%e7%bd%ae%e6%97%a0%e5%af%86%e7%a0%81ssh%e8%ae%bf%e9%97%ae","status":"publish","type":"post","link":"https:\/\/blog.kimi.ee\/?p=1927","title":{"rendered":"\u3010\u5907\u4efd\u3011\u4e24\u53f0\u670d\u52a1\u5668\u4e4b\u95f4\u5982\u4f55\u8bbe\u7f6e\u65e0\u5bc6\u7801ssh\u8bbf\u95ee"},"content":{"rendered":"\n<p>\u5047\u8bbe\u7b2c\u4e00\u53f0ip\u662f1.1.1.1\uff0c\u767b\u5f55\u7b2c\u4e00\u53f0SSH\u7684\u7528\u6237\u540d\u662froot1\uff0c\u5bc6\u7801\u662f1111<\/p>\n\n\n\n<p>\u5047\u8bbe\u7b2c\u4e8c\u53f0ip\u662f2.2.2.2\uff0c\u767b\u5f55\u7b2c\u4e00\u53f0SSH\u7684\u7528\u6237\u540d\u662froot2\uff0c\u5bc6\u7801\u662f2222<\/p>\n\n\n\n<p>\u5047\u8bbe\u8981<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_62 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >\u3010 \u76ee \u5f55 \u3011 -  \u70b9\u51fb\u4e0b\u65b9\u6807\u9898\u8df3\u8f6c <\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #cecece;color:#cecece\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #cecece;color:#cecece\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/blog.kimi.ee\/?p=1927\/#%E7%94%9F%E6%88%90%E5%85%AC%E9%92%A5key\" title=\"\u751f\u6210\u516c\u94a5key\">\u751f\u6210\u516c\u94a5key<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/blog.kimi.ee\/?p=1927\/#%E5%B0%86%E5%85%AC%E9%92%A5%E5%A4%8D%E5%88%B6%E5%88%B0%E6%9C%8D%E5%8A%A1%E5%99%A8\" title=\"\u5c06\u516c\u94a5\u590d\u5236\u5230\u670d\u52a1\u5668\">\u5c06\u516c\u94a5\u590d\u5236\u5230\u670d\u52a1\u5668<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/blog.kimi.ee\/?p=1927\/#%E6%B5%8B%E8%AF%95%E6%97%A0%E5%AF%86%E7%A0%81_SSH_%E7%99%BB%E5%BD%95\" title=\"\u6d4b\u8bd5\u65e0\u5bc6\u7801 SSH \u767b\u5f55\">\u6d4b\u8bd5\u65e0\u5bc6\u7801 SSH \u767b\u5f55<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/blog.kimi.ee\/?p=1927\/#%E5%85%B6%E4%BB%96%E9%94%99%E8%AF%AF%E6%8F%90%E7%A4%BA%E8%A7%A3%E5%86%B3\" title=\"\u5176\u4ed6\u9519\u8bef\u63d0\u793a\u89e3\u51b3\">\u5176\u4ed6\u9519\u8bef\u63d0\u793a\u89e3\u51b3<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/blog.kimi.ee\/?p=1927\/#%E5%A6%82%E4%BD%95%E9%81%BF%E5%85%8D%E6%AF%8F%E6%AC%A1%E9%83%BD%E8%BE%93%E5%85%A5%E5%AF%86%E7%A0%81\" title=\"\u5982\u4f55\u907f\u514d\u6bcf\u6b21\u90fd\u8f93\u5165\u5bc6\u7801\">\u5982\u4f55\u907f\u514d\u6bcf\u6b21\u90fd\u8f93\u5165\u5bc6\u7801<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/blog.kimi.ee\/?p=1927\/#%E5%B0%86VPS%E4%BA%91%E6%9C%8D%E5%8A%A1%E5%99%A8%E6%95%B0%E6%8D%AE%E5%A4%87%E4%BB%BD%E5%88%B0%E7%BE%A4%E6%99%96nas%E6%9C%AC%E5%9C%B0\" title=\"\u5c06VPS\u4e91\u670d\u52a1\u5668\u6570\u636e\u5907\u4efd\u5230\u7fa4\u6656nas\u672c\u5730\">\u5c06VPS\u4e91\u670d\u52a1\u5668\u6570\u636e\u5907\u4efd\u5230\u7fa4\u6656nas\u672c\u5730<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/blog.kimi.ee\/?p=1927\/#%E5%A6%82%E6%9E%9C%E8%A6%81%E5%8A%A0%E5%AF%86%E7%A0%81\" title=\"\u5982\u679c\u8981\u52a0\u5bc6\u7801\">\u5982\u679c\u8981\u52a0\u5bc6\u7801<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/blog.kimi.ee\/?p=1927\/#%E5%A6%82%E6%9E%9C%E9%9C%80%E8%A6%81%E5%AE%8C%E5%85%A8%E5%90%8C%E6%AD%A5%EF%BC%88%E5%8C%85%E6%8B%AC%E5%88%A0%E9%99%A4%E6%93%8D%E4%BD%9C%EF%BC%89\" title=\"\u5982\u679c\u9700\u8981\u5b8c\u5168\u540c\u6b65\uff08\u5305\u62ec\u5220\u9664\u64cd\u4f5c\uff09\">\u5982\u679c\u9700\u8981\u5b8c\u5168\u540c\u6b65\uff08\u5305\u62ec\u5220\u9664\u64cd\u4f5c\uff09<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/blog.kimi.ee\/?p=1927\/#%E5%85%B6%E4%BB%96%E5%A4%87%E4%BB%BD%E6%96%87%E7%AB%A0\" title=\"\u5176\u4ed6\u5907\u4efd\u6587\u7ae0\">\u5176\u4ed6\u5907\u4efd\u6587\u7ae0<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E7%94%9F%E6%88%90%E5%85%AC%E9%92%A5key\"><\/span>\u751f\u6210\u516c\u94a5key<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><strong>\u5728\u7b2c\u4e00\u53f0\u670d\u52a1\u5668\u4e0a\u751f\u6210 SSH \u5bc6\u94a5\u5bf9<\/strong>\uff08\u5982\u679c\u4f60\u8fd8\u6ca1\u6709\u5bc6\u94a5\u5bf9\uff09\uff0c\u6253\u5f00\u4e00\u4e2a\u7ec8\u7aef\u6216\u547d\u4ee4\u884c\u754c\u9762\uff0c\u7136\u540e\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n\n\n\n<p>-t rsa\u662f\u6307\u7684\u662frsa\u7c7b\u7684key<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#adbac7;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"ssh-keygen -t rsa\" style=\"color:#22272e;display:none;background-color:#adbac7\" aria-label=\"Copy\" data-copied-text=\"Copied!\" data-has-text-button=\"textSimple\" data-inside-header-type=\"none\" aria-live=\"polite\" class=\"code-block-pro-copy-button\"><span class=\"cbp-btn-text\">Copy<\/span><\/span><pre class=\"shiki github-dark-dimmed\" style=\"background-color: #22272e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #ADBAC7\">ssh<\/span><span style=\"color: #F47067\">-<\/span><span style=\"color: #ADBAC7\">keygen <\/span><span style=\"color: #F47067\">-<\/span><span style=\"color: #ADBAC7\">t rsa<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u6839\u636e\u63d0\u793a\u64cd\u4f5c\uff0c\u53ef\u4ee5\u9009\u62e9\u9ed8\u8ba4\u8bbe\u7f6e\uff0c\u8fd9\u4f1a\u5728\u9ed8\u8ba4\u7684&nbsp;<code>.ssh<\/code>&nbsp;\u76ee\u5f55\u4e2d\u521b\u5efa\u4e00\u4e2a\u65b0\u7684 SSH \u5bc6\u94a5\u5bf9\uff08\u4e00\u4e2a\u79c1\u94a5\u548c\u4e00\u4e2a\u516c\u94a5\uff09\u3002\u8bb0\u5f97\u8bbe\u7f6e\u4e00\u4e2a\u5f3a\u5bc6\u7801\u6216\u8005\u9009\u62e9\u201c\u65e0\u5bc6\u7801\u201d\uff0c\u4f46\u8bf7\u6ce8\u610f\u65e0\u5bc6\u7801\u8bbe\u7f6e\u867d\u7136\u65b9\u4fbf\u4f46\u5b89\u5168\u6027\u8f83\u4f4e\u3002<\/p>\n\n\n\n<p>\u516c\u94a5\u548c\u79c1\u94a5\u4fdd\u5b58\u5728\u8be5\u76ee\u5f55\u4e0b<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#adbac7;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"\/root\/.ssh   \n\n#id_rsa      \u662f\u79c1\u94a5\n#id_rsa.pub  \u662f\u516c\u94a5\" style=\"color:#22272e;display:none;background-color:#adbac7\" aria-label=\"Copy\" data-copied-text=\"Copied!\" data-has-text-button=\"textSimple\" data-inside-header-type=\"none\" aria-live=\"polite\" class=\"code-block-pro-copy-button\"><span class=\"cbp-btn-text\">Copy<\/span><\/span><pre class=\"shiki github-dark-dimmed\" style=\"background-color: #22272e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #96D0FF\">\/root\/<\/span><span style=\"color: #ADBAC7\">.ssh   <\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #ADBAC7\">#id_rsa      \u662f\u79c1\u94a5<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ADBAC7\">#id_rsa.pub  \u662f\u516c\u94a5<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%B0%86%E5%85%AC%E9%92%A5%E5%A4%8D%E5%88%B6%E5%88%B0%E6%9C%8D%E5%8A%A1%E5%99%A8\"><\/span><strong>\u5c06\u516c\u94a5\u590d\u5236\u5230\u670d\u52a1\u5668<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u65b9\u6cd5\u4e00\uff1a\u624b\u52a8\u767b\u5f55\u7b2c\u4e8c\u53f0\u7684\u670d\u52a1\u5668\uff0c\u8fdb\u5165\u8be5\u76ee\u5f55\uff0c\u6253\u5f00  authorized_keys \u6587\u4ef6<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#adbac7;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"\/root\/.ssh\" style=\"color:#22272e;display:none;background-color:#adbac7\" aria-label=\"Copy\" data-copied-text=\"Copied!\" data-has-text-button=\"textSimple\" data-inside-header-type=\"none\" aria-live=\"polite\" class=\"code-block-pro-copy-button\"><span class=\"cbp-btn-text\">Copy<\/span><\/span><pre class=\"shiki github-dark-dimmed\" style=\"background-color: #22272e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #96D0FF\">\/root\/<\/span><span style=\"color: #ADBAC7\">.ssh<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u5c06\u4e0a\u9762\u83b7\u53d6\u5230\u7684id_rsa.pub\u6587\u4ef6\u7684\u5185\u5bb9\u7c98\u8d34\u5230 authorized_keys \u6587\u4ef6\u540e\u5373\u53ef\u3002<\/p>\n\n\n\n<p>\u65b9\u6cd5\u4e8c\uff1a\u6216\u8005\u4f7f\u7528\u547d\u4ee4\u53d1\u9001<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#adbac7;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"ssh-copy-id user@2.2.2.2\" style=\"color:#22272e;display:none;background-color:#adbac7\" aria-label=\"Copy\" data-copied-text=\"Copied!\" data-has-text-button=\"textSimple\" data-inside-header-type=\"none\" aria-live=\"polite\" class=\"code-block-pro-copy-button\"><span class=\"cbp-btn-text\">Copy<\/span><\/span><pre class=\"shiki github-dark-dimmed\" style=\"background-color: #22272e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #ADBAC7\">ssh<\/span><span style=\"color: #F47067\">-<\/span><span style=\"color: #ADBAC7\">copy<\/span><span style=\"color: #F47067\">-<\/span><span style=\"color: #ADBAC7\">id user@<\/span><span style=\"color: #6CB6FF\">2.2<\/span><span style=\"color: #ADBAC7\">.<\/span><span style=\"color: #6CB6FF\">2.2<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%B5%8B%E8%AF%95%E6%97%A0%E5%AF%86%E7%A0%81_SSH_%E7%99%BB%E5%BD%95\"><\/span><strong>\u6d4b\u8bd5\u65e0\u5bc6\u7801 SSH \u767b\u5f55<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#adbac7;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"ssh root@2.2.2.2\" style=\"color:#22272e;display:none;background-color:#adbac7\" aria-label=\"Copy\" data-copied-text=\"Copied!\" data-has-text-button=\"textSimple\" data-inside-header-type=\"none\" aria-live=\"polite\" class=\"code-block-pro-copy-button\"><span class=\"cbp-btn-text\">Copy<\/span><\/span><pre class=\"shiki github-dark-dimmed\" style=\"background-color: #22272e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #ADBAC7\">ssh root@<\/span><span style=\"color: #6CB6FF\">2.2<\/span><span style=\"color: #ADBAC7\">.<\/span><span style=\"color: #6CB6FF\">2.2<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u8f93\u5165\u4e00\u6b21\u5bc6\u7801\u540e\uff0c\u518d\u4e4b\u540e\u5c31\u4e0d\u9700\u8981\u8f93\u5165<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%85%B6%E4%BB%96%E9%94%99%E8%AF%AF%E6%8F%90%E7%A4%BA%E8%A7%A3%E5%86%B3\"><\/span>\u5176\u4ed6\u9519\u8bef\u63d0\u793a\u89e3\u51b3<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#adbac7;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"\u6267\u884c\uff1assh root@2.2.2.2\n\n\u63d0\u793a\uff1assh_dispatch_run_fatal: no matching host key type found\n\" style=\"color:#22272e;display:none;background-color:#adbac7\" aria-label=\"Copy\" data-copied-text=\"Copied!\" data-has-text-button=\"textSimple\" data-inside-header-type=\"none\" aria-live=\"polite\" class=\"code-block-pro-copy-button\"><span class=\"cbp-btn-text\">Copy<\/span><\/span><pre class=\"shiki github-dark-dimmed\" style=\"background-color: #22272e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #ADBAC7\">\u6267\u884c\uff1assh root@<\/span><span style=\"color: #6CB6FF\">2.2<\/span><span style=\"color: #ADBAC7\">.<\/span><span style=\"color: #6CB6FF\">2.2<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #ADBAC7\">\u63d0\u793a\uff1a<\/span><span style=\"color: #F69D50\">ssh_dispatch_run_fatal<\/span><span style=\"color: #ADBAC7\">: no matching host key <\/span><span style=\"color: #F47067\">type<\/span><span style=\"color: #ADBAC7\"> <\/span><span style=\"color: #F69D50\">found<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u89e3\u51b3\uff1a<\/p>\n\n\n\n<ol>\n<li><strong>\u4fee\u6539\u670d\u52a1\u5668\u7684SSH\u5b88\u62a4\u8fdb\u7a0b\u914d\u7f6e<\/strong>\uff1a\n<ul>\n<li>\u5982\u679c\u4f60\u53ef\u4ee5\u63a7\u5236\u670d\u52a1\u5668\uff08<code>2.2.2.2<\/code>\uff09\uff0c\u4e14\u62e5\u6709\u76f8\u5173\u7684\u6743\u9650\uff0c\u53ef\u4ee5\u7f16\u8f91&nbsp;<code>\/etc\/ssh\/sshd_config<\/code>&nbsp;\u6587\u4ef6\uff0c\u6dfb\u52a0\u6216\u542f\u7528\u4e00\u4e2a\u7fa4\u6656NAS\uff08\u7b2c\u4e00\u53f0\u8bbe\u5907\uff09\u652f\u6301\u7684\u5bc6\u94a5\u7b97\u6cd5\u3002<\/li>\n\n\n\n<li>\u6bd4\u5982\u6dfb\u52a0&nbsp;<code>HostKeyAlgorithms +ssh-rsa<\/code>&nbsp;\u6216\u8005\u5176\u5b83\u652f\u6301\u7684\u7b97\u6cd5\u3002<\/li>\n\n\n\n<li>\u5b8c\u6210\u7f16\u8f91\u540e\uff0c\u91cd\u65b0\u542f\u52a8SSH\u670d\u52a1\u6765\u5e94\u7528\u66f4\u6539\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u5177\u4f53\u64cd\u4f5c\u5982\u4e0b\uff1a\n<ul>\n<li>\u4f60\u53ef\u4ee5\u4f7f\u7528\u4efb\u4f55\u6587\u672c\u7f16\u8f91\u5668\u6765\u7f16\u8f91&nbsp;<code>\/etc\/ssh\/sshd_config<\/code><\/li>\n\n\n\n<li>\u5728\u7f16\u8f91\u5668\u4e2d\uff0c\u627e\u5230&nbsp;<code>HostKeyAlgorithms<\/code>&nbsp;\u884c\u3002\u5982\u679c\u6ca1\u6709\u8fd9\u6837\u7684\u884c\uff0c\u5219\u53ef\u4ee5\u6dfb\u52a0HostKeyAlgorithms ssh-rsa\u5230\u6587\u4ef6\u7684\u672b\u5c3e\u3002\u7136\u540e\u4fdd\u5b58\u9000\u51fa<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#adbac7;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"   HostKeyAlgorithms ssh-rsa\" style=\"color:#22272e;display:none;background-color:#adbac7\" aria-label=\"Copy\" data-copied-text=\"Copied!\" data-has-text-button=\"textSimple\" data-inside-header-type=\"none\" aria-live=\"polite\" class=\"code-block-pro-copy-button\"><span class=\"cbp-btn-text\">Copy<\/span><\/span><pre class=\"shiki github-dark-dimmed\" style=\"background-color: #22272e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #ADBAC7\">   HostKeyAlgorithms ssh<\/span><span style=\"color: #F47067\">-<\/span><span style=\"color: #ADBAC7\">rsa<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u91cd\u542fssh\u670d\u52a1<\/p>\n\n\n\n<p>\u968f\u540e\uff0c\u4f60\u9700\u8981\u91cd\u542f SSH \u670d\u52a1\u4ee5\u4f7f\u66f4\u6539\u751f\u6548\u3002\u8fd9\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b8c\u6210\uff1a<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#adbac7;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"systemctl restart sshd\" style=\"color:#22272e;display:none;background-color:#adbac7\" aria-label=\"Copy\" data-copied-text=\"Copied!\" data-has-text-button=\"textSimple\" data-inside-header-type=\"none\" aria-live=\"polite\" class=\"code-block-pro-copy-button\"><span class=\"cbp-btn-text\">Copy<\/span><\/span><pre class=\"shiki github-dark-dimmed\" style=\"background-color: #22272e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #ADBAC7\">systemctl restart sshd<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u6216\u8005\u5982\u679c\u4f60\u7528\u7684\u662f\u6ca1\u6709&nbsp;<code>systemctl<\/code>&nbsp;\u7684\u7cfb\u7edf\uff1a<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#adbac7;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"service ssh restart\" style=\"color:#22272e;display:none;background-color:#adbac7\" aria-label=\"Copy\" data-copied-text=\"Copied!\" data-has-text-button=\"textSimple\" data-inside-header-type=\"none\" aria-live=\"polite\" class=\"code-block-pro-copy-button\"><span class=\"cbp-btn-text\">Copy<\/span><\/span><pre class=\"shiki github-dark-dimmed\" style=\"background-color: #22272e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #ADBAC7\">service ssh restart<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#adbac7;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"\u8f93\u5165ssh root@2.2.2.2.\u63d0\u793a\nThe authenticity of host '2.2.2.2 (2.2.2.2)' can't be established.\nRSA key fingerprint is SHA256:tUcjlxxxxxxxxzxg+IAxxxx8\/Hk1xxx6E.\nAre you sure you want to continue connecting (yes\/no)? \" style=\"color:#22272e;display:none;background-color:#adbac7\" aria-label=\"Copy\" data-copied-text=\"Copied!\" data-has-text-button=\"textSimple\" data-inside-header-type=\"none\" aria-live=\"polite\" class=\"code-block-pro-copy-button\"><span class=\"cbp-btn-text\">Copy<\/span><\/span><pre class=\"shiki github-dark-dimmed\" style=\"background-color: #22272e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #ADBAC7\">\u8f93\u5165ssh root@<\/span><span style=\"color: #6CB6FF\">2.2<\/span><span style=\"color: #ADBAC7\">.<\/span><span style=\"color: #6CB6FF\">2.2<\/span><span style=\"color: #ADBAC7\">.\u63d0\u793a<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ADBAC7\">The authenticity <\/span><span style=\"color: #F47067\">of<\/span><span style=\"color: #ADBAC7\"> host <\/span><span style=\"color: #96D0FF\">&#39;2.2.2.2 (2.2.2.2)&#39;<\/span><span style=\"color: #ADBAC7\"> can<\/span><span style=\"color: #96D0FF\">&#39;t be established<\/span><span style=\"color: #FF938A; font-style: italic\">.<\/span><\/span>\n<span class=\"line\"><span style=\"color: #6CB6FF\">RSA<\/span><span style=\"color: #ADBAC7\"> key fingerprint is <\/span><span style=\"color: #F69D50\">SHA256<\/span><span style=\"color: #ADBAC7\">:tUcjlxxxxxxxxzxg<\/span><span style=\"color: #F47067\">+<\/span><span style=\"color: #ADBAC7\">IAxxxx8<\/span><span style=\"color: #F47067\">\/<\/span><span style=\"color: #ADBAC7\">Hk1xxx6E.<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ADBAC7\">Are you sure you want to <\/span><span style=\"color: #F47067\">continue<\/span><span style=\"color: #ADBAC7\"> <\/span><span style=\"color: #F69D50\">connecting<\/span><span style=\"color: #ADBAC7\"> (yes<\/span><span style=\"color: #F47067\">\/<\/span><span style=\"color: #ADBAC7\">no)<\/span><span style=\"color: #F47067\">?<\/span><span style=\"color: #ADBAC7\"> <\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u6b64\u63d0\u793a\u610f\u5473\u7740\u4f60\u7684SSH\u5ba2\u6237\u7aef\u6ca1\u6709\u5728\u4e4b\u524d\u7684\u8fde\u63a5\u5c1d\u8bd5\u4e2d\u9047\u5230\u8fc7\u8fd9\u4e2a\u670d\u52a1\u5668\uff0c\u5b83\u4e0d\u5728\u4f60\u7684SSH\u5df2\u77e5\u4e3b\u673a\u5217\u8868\u4e2d\u3002\u51fa\u73b0\u8fd9\u4e2a\u6d88\u606f\u662f\u56e0\u4e3aSSH\u5ba2\u6237\u7aef\u8bd5\u56fe\u9a8c\u8bc1\u670d\u52a1\u5668\u7684\u8eab\u4efd\u3002<\/p>\n\n\n\n<p>\u670d\u52a1\u5668\u7684 RSA \u5bc6\u94a5\u6307\u7eb9\u662f\u4e00\u4e32\u5b57\u7b26\uff0c\u7528\u4e8e\u552f\u4e00\u6807\u8bc6\u670d\u52a1\u5668\u3002\u5f53\u4f60\u901a\u8fc7 SSH \u7b2c\u4e00\u6b21\u8fde\u63a5\u5230\u4e00\u4e2a\u670d\u52a1\u5668\u65f6\uff0cSSH \u5ba2\u6237\u7aef\u4f1a\u8be2\u95ee\u4f60\u662f\u5426\u4fe1\u4efb\u8be5\u670d\u52a1\u5668\u7684\u6307\u7eb9\u3002<\/p>\n\n\n\n<p>\u5982\u679c\u4f60\u76f8\u4fe1\u8fd9\u662f\u4f60\u60f3\u8981\u8fde\u63a5\u7684\u6b63\u786e\u670d\u52a1\u5668\uff08\u901a\u5e38\uff0c\u4f60\u4f1a\u4ece\u670d\u52a1\u5668\u7ba1\u7406\u5458\u6216\u901a\u8fc7\u5176\u5b83\u5b89\u5168\u6e20\u9053\u83b7\u77e5\u8fd9\u4e2a\u6307\u7eb9\uff09\uff0c\u4f60\u5e94\u8be5\u8f93\u5165&nbsp;<code>yes<\/code>&nbsp;\u7ee7\u7eed\u8fde\u63a5\u3002\u8fd9\u8868\u793a\u4f60\u4fe1\u4efb\u8fd9\u4e2a\u670d\u52a1\u5668\uff0cSSH \u5ba2\u6237\u7aef\u4f1a\u628a\u8fd9\u53f0\u670d\u52a1\u5668\u7684\u5bc6\u94a5\u6dfb\u52a0\u5230\u4f60\u7684\u672c\u5730\u77e5\u540d\u4e3b\u673a\u6587\u4ef6(<code>~\/.ssh\/known_hosts<\/code>)\u91cc\uff0c\u4ee5\u540e\u4e0d\u4f1a\u518d\u63d0\u793a\u8fd9\u4e00\u4fe1\u606f\u3002<\/p>\n\n\n\n<p>\u5982\u679c\u4f60\u8f93\u5165&nbsp;<code>yes<\/code>&nbsp;\u5e76\u7ee7\u7eed\uff0c\u5c06\u4f1a\u5982\u4e0b\u64cd\u4f5c\uff1a<\/p>\n\n\n\n<ol>\n<li>\u786e\u8ba4\u6307\u7eb9 [\u5339\u914d\u7ba1\u7406\u5458\u63d0\u4f9b\u7684\u6216\u8005\u4f60\u4ee5\u524d\u8bb0\u5f55\u7684\u6307\u7eb9]\u3002<\/li>\n\n\n\n<li>\u8f93\u5165&nbsp;<code>yes<\/code>&nbsp;\u5e76\u6309\u4e0b Enter \u952e\u4ee5\u63a5\u53d7\u5bc6\u94a5\u3002<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%A6%82%E4%BD%95%E9%81%BF%E5%85%8D%E6%AF%8F%E6%AC%A1%E9%83%BD%E8%BE%93%E5%85%A5%E5%AF%86%E7%A0%81\"><\/span>\u5982\u4f55\u907f\u514d\u6bcf\u6b21\u90fd\u8f93\u5165\u5bc6\u7801<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u5728\u7b2c\u4e8c\u53f0\u670d\u52a1\u56682.2.2.2\u4e0a\uff0c\u786e\u4fdd\u670d\u52a1\u5668\u4e0a\u7684 SSH \u5b88\u62a4\u8fdb\u7a0b\u914d\u7f6e\u6587\u4ef6&nbsp;<code>\/etc\/ssh\/sshd_config<\/code>&nbsp;\u5141\u8bb8\u4f7f\u7528\u516c\u94a5\u8ba4\u8bc1\u3002\u4ee5\u4e0b\u884c\u9700\u8981\u662f\u8fd9\u6837\u8bbe\u7f6e\u7684\uff1a<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#adbac7;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"PubkeyAuthentication yes\" style=\"color:#22272e;display:none;background-color:#adbac7\" aria-label=\"Copy\" data-copied-text=\"Copied!\" data-has-text-button=\"textSimple\" data-inside-header-type=\"none\" aria-live=\"polite\" class=\"code-block-pro-copy-button\"><span class=\"cbp-btn-text\">Copy<\/span><\/span><pre class=\"shiki github-dark-dimmed\" style=\"background-color: #22272e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #ADBAC7\">PubkeyAuthentication yes<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u5982\u679c\u4f60\u66f4\u6539\u4e86\u4efb\u4f55\u8bbe\u7f6e\uff0c\u9700\u8981\u91cd\u542f SSH \u670d\u52a1\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#adbac7;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"systemctl restart sshd\" style=\"color:#22272e;display:none;background-color:#adbac7\" aria-label=\"Copy\" data-copied-text=\"Copied!\" data-has-text-button=\"textSimple\" data-inside-header-type=\"none\" aria-live=\"polite\" class=\"code-block-pro-copy-button\"><span class=\"cbp-btn-text\">Copy<\/span><\/span><pre class=\"shiki github-dark-dimmed\" style=\"background-color: #22272e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #ADBAC7\">systemctl restart sshd<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u6216\u8005\u5982\u679c\u4f60\u7528\u7684\u662f\u6ca1\u6709&nbsp;<code>systemctl<\/code>&nbsp;\u7684\u7cfb\u7edf\uff1a<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#adbac7;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"service ssh restart\" style=\"color:#22272e;display:none;background-color:#adbac7\" aria-label=\"Copy\" data-copied-text=\"Copied!\" data-has-text-button=\"textSimple\" data-inside-header-type=\"none\" aria-live=\"polite\" class=\"code-block-pro-copy-button\"><span class=\"cbp-btn-text\">Copy<\/span><\/span><pre class=\"shiki github-dark-dimmed\" style=\"background-color: #22272e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #ADBAC7\">service ssh restart<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u4f7f\u7528\u5bc6\u94a5\u8ba4\u8bc1\u9664\u4e86\u51cf\u5c11\u767b\u5f55\u65f6\u7684\u7e41\u7410\u6b65\u9aa4\uff0c\u66f4\u80fd\u63d0\u9ad8\u5b89\u5168\u6027\u3002\u53ea\u8981\u79c1\u94a5\u5b89\u5168\uff0c\u65e0\u4eba\u80fd\u901a\u8fc7\u5bc6\u7801\u7834\u89e3\u65b9\u5f0f\u83b7\u53d6\u670d\u52a1\u5668\u8bbf\u95ee\u6743\u3002\u4f46\u4e00\u5b9a\u8981\u4fdd\u62a4\u597d\u4f60\u7684\u79c1\u94a5\uff0c\u4e0d\u8981\u8ba9\u5b83\u6cc4\u9732\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%B0%86VPS%E4%BA%91%E6%9C%8D%E5%8A%A1%E5%99%A8%E6%95%B0%E6%8D%AE%E5%A4%87%E4%BB%BD%E5%88%B0%E7%BE%A4%E6%99%96nas%E6%9C%AC%E5%9C%B0\"><\/span>\u5c06VPS\u4e91\u670d\u52a1\u5668\u6570\u636e\u5907\u4efd\u5230\u7fa4\u6656nas\u672c\u5730<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u7fa4\u6656\u6bd4\u8f83\u7279\u6b8a\uff0c\u9700\u8981\u53e6\u5916\u914d\u7f6e<\/p>\n\n\n\n<p>\u5148\u5c06nas\u91cc\u9762\u677f\u8bbe\u7f6e-\u6587\u4ef6\u670d\u52a1-rsync\u670d\u52a1\u6253\u5f00\uff0c\u7aef\u53e3\u914d\u7f6e\u597d<\/p>\n\n\n\n<p>\u5c06\/etc\/default\u76ee\u5f55\u4e0b\u7684rsync\u6587\u4ef6\u6253\u5f00\uff0c\u5c06RSYNC_ENABLE\u6539\u6210true\uff0c\u4fdd\u5b58\u9000\u51fa<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#adbac7;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"RSYNC_ENABLE=true\" style=\"color:#22272e;display:none;background-color:#adbac7\" aria-label=\"Copy\" data-copied-text=\"Copied!\" data-has-text-button=\"textSimple\" data-inside-header-type=\"none\" aria-live=\"polite\" class=\"code-block-pro-copy-button\"><span class=\"cbp-btn-text\">Copy<\/span><\/span><pre class=\"shiki github-dark-dimmed\" style=\"background-color: #22272e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #6CB6FF\">RSYNC_ENABLE<\/span><span style=\"color: #F47067\">=<\/span><span style=\"color: #6CB6FF\">true<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>\u5c06nas\u91cc\u7684etc\/rsyncd.conf\u914d\u7f6e\u597d\uff0c\u7fa4\u6656\u672c\u8eab\u4f1a\u5728\u6839\u76ee\u5f55\u751f\u6210Netbackup\u6587\u4ef6\u5939\uff0c\u4f46\u5177\u4f53\u4f7f\u7528\u89c4\u5219\u4e0d\u592a\u660e\u767d\uff0c\u6240\u4ee5\u53e6\u5916\u5355\u72ec\u914d\u7f6e\u6a21\u5757<\/p>\n\n\n\n<p>\u53e6\u5916\u8fd8\u9700\u8981\u628a\u6587\u4ef6\u91cc\u7684\u5176\u4ed6\u914d\u7f6e\u7528#\u6ce8\u91ca\u6389<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#adbac7;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"#motd file = \/etc\/rsyncd.motd\nlog file = \/var\/log\/rsyncd.log   \npid file = \/var\/run\/rsyncd.pid\nlock file = \/var\/run\/rsync.lock\nuse chroot = no\nuid = root\ngid = root\n\n\n\n[test1]         #\u8fd9\u91cc\u586b\u6a21\u5757\u7684\u540d\u5b57\npath = \/volume1\/Backup\/VPS\/rsync  #\u8fd9\u91cc\u662fnas\u672c\u5730\u7684\u76ee\u5f55\nlist = yes\nread only = no    #\u53d6\u6d88\u53ea\u8bfb\nignore errors     #\u5ffd\u7565\u9519\u8bef\" style=\"color:#22272e;display:none;background-color:#adbac7\" aria-label=\"Copy\" data-copied-text=\"Copied!\" data-has-text-button=\"textSimple\" data-inside-header-type=\"none\" aria-live=\"polite\" class=\"code-block-pro-copy-button\"><span class=\"cbp-btn-text\">Copy<\/span><\/span><pre class=\"shiki github-dark-dimmed\" style=\"background-color: #22272e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #ADBAC7\">#motd file <\/span><span style=\"color: #F47067\">=<\/span><span style=\"color: #ADBAC7\"> <\/span><span style=\"color: #F47067\">\/<\/span><span style=\"color: #ADBAC7\">etc<\/span><span style=\"color: #F47067\">\/<\/span><span style=\"color: #ADBAC7\">rsyncd.motd<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ADBAC7\">log file <\/span><span style=\"color: #F47067\">=<\/span><span style=\"color: #ADBAC7\"> <\/span><span style=\"color: #F47067\">\/var<\/span><span style=\"color: #ADBAC7\">\/log\/rsyncd.log   <\/span><\/span>\n<span class=\"line\"><span style=\"color: #ADBAC7\">pid file <\/span><span style=\"color: #F47067\">=<\/span><span style=\"color: #ADBAC7\"> <\/span><span style=\"color: #F47067\">\/var<\/span><span style=\"color: #ADBAC7\">\/run\/rsyncd.pid<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ADBAC7\">lock file <\/span><span style=\"color: #F47067\">=<\/span><span style=\"color: #ADBAC7\"> <\/span><span style=\"color: #F47067\">\/var<\/span><span style=\"color: #ADBAC7\">\/run\/rsync.lock<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ADBAC7\">use chroot <\/span><span style=\"color: #F47067\">=<\/span><span style=\"color: #ADBAC7\"> no<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ADBAC7\">uid <\/span><span style=\"color: #F47067\">=<\/span><span style=\"color: #ADBAC7\"> root<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ADBAC7\">gid <\/span><span style=\"color: #F47067\">=<\/span><span style=\"color: #ADBAC7\"> root<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #ADBAC7\">[test1]         #\u8fd9\u91cc\u586b\u6a21\u5757\u7684\u540d\u5b57<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ADBAC7\">path <\/span><span style=\"color: #F47067\">=<\/span><span style=\"color: #ADBAC7\"> <\/span><span style=\"color: #F47067\">\/<\/span><span style=\"color: #ADBAC7\">volume1<\/span><span style=\"color: #F47067\">\/<\/span><span style=\"color: #ADBAC7\">Backup<\/span><span style=\"color: #F47067\">\/<\/span><span style=\"color: #6CB6FF\">VPS<\/span><span style=\"color: #F47067\">\/<\/span><span style=\"color: #ADBAC7\">rsync  #\u8fd9\u91cc\u662fnas\u672c\u5730\u7684\u76ee\u5f55<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ADBAC7\">list <\/span><span style=\"color: #F47067\">=<\/span><span style=\"color: #ADBAC7\"> yes<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ADBAC7\">read only <\/span><span style=\"color: #F47067\">=<\/span><span style=\"color: #ADBAC7\"> no    #\u53d6\u6d88\u53ea\u8bfb<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ADBAC7\">ignore errors     #\u5ffd\u7565\u9519\u8bef<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u6309\u7167\u4e0a\u9762\u914d\u7f6e\u597dssh\u65e0\u5bc6\u7801\u767b\u5f55\u540e\uff0c\u4e0b\u9762\u8fd9\u4e9b\u547d\u4ee4\u53ef\u4ee5\u4f7f\u7528<\/p>\n\n\n\n<p>\u663e\u793anas\u672c\u5730\u7684test\u6a21\u5757\u6307\u5411\u7684\/volume1\/Backup\/VPS\/rsync\u6587\u4ef6\u5939\u7684\u6587\u4ef6\uff1a<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#adbac7;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"rsync -avzh 1.1.1.15::test1\" style=\"color:#22272e;display:none;background-color:#adbac7\" aria-label=\"Copy\" data-copied-text=\"Copied!\" data-has-text-button=\"textSimple\" data-inside-header-type=\"none\" aria-live=\"polite\" class=\"code-block-pro-copy-button\"><span class=\"cbp-btn-text\">Copy<\/span><\/span><pre class=\"shiki github-dark-dimmed\" style=\"background-color: #22272e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #ADBAC7\">rsync <\/span><span style=\"color: #F47067\">-<\/span><span style=\"color: #ADBAC7\">avzh <\/span><span style=\"color: #6CB6FF\">1.1<\/span><span style=\"color: #ADBAC7\">.<\/span><span style=\"color: #6CB6FF\">1.15<\/span><span style=\"color: #ADBAC7\">::test1<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#adbac7;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"\u663e\u793a\uff1a\n\nroot@Kimi-Main:~# rsync -av 100.100.1.15::test1\n\nreceiving incremental file list\ndrwxr-xr-x          4,096 2024\/02\/18 20:15:44 .\n-rw-r--r--              0 2024\/02\/18 20:15:32 1p-2\n-rw-r--r--              0 2024\/02\/18 03:16:25 rsync-1panel\n\nsent 54 bytes  received 91 bytes  58.00 bytes\/sec\ntotal size is 0  speedup is 0.00\n\" style=\"color:#22272e;display:none;background-color:#adbac7\" aria-label=\"Copy\" data-copied-text=\"Copied!\" data-has-text-button=\"textSimple\" data-inside-header-type=\"none\" aria-live=\"polite\" class=\"code-block-pro-copy-button\"><span class=\"cbp-btn-text\">Copy<\/span><\/span><pre class=\"shiki github-dark-dimmed\" style=\"background-color: #22272e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #ADBAC7\">\u663e\u793a\uff1a<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #ADBAC7\">root@Kimi<\/span><span style=\"color: #F47067\">-<\/span><span style=\"color: #F69D50\">Main<\/span><span style=\"color: #ADBAC7\">:<\/span><span style=\"color: #F47067\">~<\/span><span style=\"color: #ADBAC7\"># rsync <\/span><span style=\"color: #F47067\">-<\/span><span style=\"color: #ADBAC7\">av <\/span><span style=\"color: #6CB6FF\">100.100<\/span><span style=\"color: #ADBAC7\">.<\/span><span style=\"color: #6CB6FF\">1.15<\/span><span style=\"color: #ADBAC7\">::test1<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #ADBAC7\">receiving incremental file list<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ADBAC7\">drwxr<\/span><span style=\"color: #F47067\">-<\/span><span style=\"color: #ADBAC7\">xr<\/span><span style=\"color: #F47067\">-<\/span><span style=\"color: #ADBAC7\">x          <\/span><span style=\"color: #6CB6FF\">4<\/span><span style=\"color: #ADBAC7\">,<\/span><span style=\"color: #6CB6FF\">096<\/span><span style=\"color: #ADBAC7\"> <\/span><span style=\"color: #6CB6FF\">2024<\/span><span style=\"color: #F47067\">\/<\/span><span style=\"color: #6CB6FF\">02<\/span><span style=\"color: #F47067\">\/<\/span><span style=\"color: #6CB6FF\">18<\/span><span style=\"color: #ADBAC7\"> <\/span><span style=\"color: #6CB6FF\">20<\/span><span style=\"color: #ADBAC7\">:<\/span><span style=\"color: #6CB6FF\">15<\/span><span style=\"color: #ADBAC7\">:<\/span><span style=\"color: #6CB6FF\">44<\/span><span style=\"color: #ADBAC7\"> .<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F47067\">-<\/span><span style=\"color: #ADBAC7\">rw<\/span><span style=\"color: #F47067\">-<\/span><span style=\"color: #ADBAC7\">r<\/span><span style=\"color: #F47067\">--<\/span><span style=\"color: #ADBAC7\">r<\/span><span style=\"color: #F47067\">--<\/span><span style=\"color: #ADBAC7\">              <\/span><span style=\"color: #6CB6FF\">0<\/span><span style=\"color: #ADBAC7\"> <\/span><span style=\"color: #6CB6FF\">2024<\/span><span style=\"color: #F47067\">\/<\/span><span style=\"color: #6CB6FF\">02<\/span><span style=\"color: #F47067\">\/<\/span><span style=\"color: #6CB6FF\">18<\/span><span style=\"color: #ADBAC7\"> <\/span><span style=\"color: #6CB6FF\">20<\/span><span style=\"color: #ADBAC7\">:<\/span><span style=\"color: #6CB6FF\">15<\/span><span style=\"color: #ADBAC7\">:<\/span><span style=\"color: #6CB6FF\">32<\/span><span style=\"color: #ADBAC7\"> 1p<\/span><span style=\"color: #F47067\">-<\/span><span style=\"color: #6CB6FF\">2<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F47067\">-<\/span><span style=\"color: #ADBAC7\">rw<\/span><span style=\"color: #F47067\">-<\/span><span style=\"color: #ADBAC7\">r<\/span><span style=\"color: #F47067\">--<\/span><span style=\"color: #ADBAC7\">r<\/span><span style=\"color: #F47067\">--<\/span><span style=\"color: #ADBAC7\">              <\/span><span style=\"color: #6CB6FF\">0<\/span><span style=\"color: #ADBAC7\"> <\/span><span style=\"color: #6CB6FF\">2024<\/span><span style=\"color: #F47067\">\/<\/span><span style=\"color: #6CB6FF\">02<\/span><span style=\"color: #F47067\">\/<\/span><span style=\"color: #6CB6FF\">18<\/span><span style=\"color: #ADBAC7\"> <\/span><span style=\"color: #6CB6FF\">03<\/span><span style=\"color: #ADBAC7\">:<\/span><span style=\"color: #6CB6FF\">16<\/span><span style=\"color: #ADBAC7\">:<\/span><span style=\"color: #6CB6FF\">25<\/span><span style=\"color: #ADBAC7\"> rsync<\/span><span style=\"color: #F47067\">-<\/span><span style=\"color: #ADBAC7\">1panel<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #ADBAC7\">sent <\/span><span style=\"color: #6CB6FF\">54<\/span><span style=\"color: #ADBAC7\"> bytes  received <\/span><span style=\"color: #6CB6FF\">91<\/span><span style=\"color: #ADBAC7\"> bytes  <\/span><span style=\"color: #6CB6FF\">58.00<\/span><span style=\"color: #ADBAC7\"> bytes<\/span><span style=\"color: #F47067\">\/<\/span><span style=\"color: #ADBAC7\">sec<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ADBAC7\">total size is <\/span><span style=\"color: #6CB6FF\">0<\/span><span style=\"color: #ADBAC7\">  speedup is <\/span><span style=\"color: #6CB6FF\">0.00<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u5c06VPS\u7684\/backup\/rsync\/\u53d1\u9001\u52301.1.1.15\u7684nas\u7684test1\u6a21\u5757\u6587\u4ef6\u5939\u91cc\uff08\u6307\u5411\u7684\u662f\u4e0a\u9762\u63d0\u5230\u7684\/volume1\/Backup\/VPS\/rsync\uff09<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#adbac7;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"rsync -avzh \/backup\/rsync\/ 1.1.1.15::test1\" style=\"color:#22272e;display:none;background-color:#adbac7\" aria-label=\"Copy\" data-copied-text=\"Copied!\" data-has-text-button=\"textSimple\" data-inside-header-type=\"none\" aria-live=\"polite\" class=\"code-block-pro-copy-button\"><span class=\"cbp-btn-text\">Copy<\/span><\/span><pre class=\"shiki github-dark-dimmed\" style=\"background-color: #22272e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #ADBAC7\">rsync <\/span><span style=\"color: #F47067\">-<\/span><span style=\"color: #ADBAC7\">avzh <\/span><span style=\"color: #F47067\">\/<\/span><span style=\"color: #ADBAC7\">backup<\/span><span style=\"color: #F47067\">\/<\/span><span style=\"color: #ADBAC7\">rsync<\/span><span style=\"color: #F47067\">\/<\/span><span style=\"color: #ADBAC7\"> <\/span><span style=\"color: #6CB6FF\">1.1<\/span><span style=\"color: #ADBAC7\">.<\/span><span style=\"color: #6CB6FF\">1.15<\/span><span style=\"color: #ADBAC7\">::test1<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#adbac7;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"\u6ce8\u610f\uff1a\u3010\/backup\/rsync\/\u3011\u53ef\u4ee5\u548c\u30101.1.1.15::test1\u3011\u6362\u4f4d\u7f6e\uff0crsync \u547d\u4ee4\uff0c\u524d\u9762\u7684\u76ee\u5f55\u590d\u5236\u5230\u53f3\u8fb9\u7684\u76ee\u5f55\n\u547d\u4ee4\u683c\u5f0f\u662f rsync \u7a7a\u683c -avzh\u9009\u9879 \u7a7a\u683c \u6e90\u76ee\u5f55 \u7a7a\u683c \u76ee\u6807\u76ee\u5f55\" style=\"color:#22272e;display:none;background-color:#adbac7\" aria-label=\"Copy\" data-copied-text=\"Copied!\" data-has-text-button=\"textSimple\" data-inside-header-type=\"none\" aria-live=\"polite\" class=\"code-block-pro-copy-button\"><span class=\"cbp-btn-text\">Copy<\/span><\/span><pre class=\"shiki github-dark-dimmed\" style=\"background-color: #22272e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #ADBAC7\">\u6ce8\u610f\uff1a\u3010<\/span><span style=\"color: #F47067\">\/<\/span><span style=\"color: #ADBAC7\">backup<\/span><span style=\"color: #F47067\">\/<\/span><span style=\"color: #ADBAC7\">rsync<\/span><span style=\"color: #F47067\">\/<\/span><span style=\"color: #ADBAC7\">\u3011\u53ef\u4ee5\u548c\u3010<\/span><span style=\"color: #6CB6FF\">1.1<\/span><span style=\"color: #ADBAC7\">.<\/span><span style=\"color: #6CB6FF\">1.15<\/span><span style=\"color: #ADBAC7\">::test1\u3011\u6362\u4f4d\u7f6e\uff0crsync \u547d\u4ee4\uff0c\u524d\u9762\u7684\u76ee\u5f55\u590d\u5236\u5230\u53f3\u8fb9\u7684\u76ee\u5f55<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ADBAC7\">\u547d\u4ee4\u683c\u5f0f\u662f rsync \u7a7a\u683c <\/span><span style=\"color: #F47067\">-<\/span><span style=\"color: #ADBAC7\">avzh\u9009\u9879 \u7a7a\u683c \u6e90\u76ee\u5f55 \u7a7a\u683c \u76ee\u6807\u76ee\u5f55<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#adbac7;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"\u6ce8\u610f2\uff1a\u5982\u679c\u8fd9\u91cc1.1.1.15::test1\u5c11\u4e86\u4e00\u4e2a\u5192\u53f7\u201c\uff1a\u201d\u53ea\u67091\u4e2a\uff0c\u5c06\u4f1a\u4f7f\u7528ssh\u8fdb\u884c\u8fde\u63a5\uff0c\u9700\u8981\u8f93\u5165\u5bc6\u7801\uff0c\u4f1a\u9ebb\u70e6\" style=\"color:#22272e;display:none;background-color:#adbac7\" aria-label=\"Copy\" data-copied-text=\"Copied!\" data-has-text-button=\"textSimple\" data-inside-header-type=\"none\" aria-live=\"polite\" class=\"code-block-pro-copy-button\"><span class=\"cbp-btn-text\">Copy<\/span><\/span><pre class=\"shiki github-dark-dimmed\" style=\"background-color: #22272e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #ADBAC7\">\u6ce8\u610f2\uff1a\u5982\u679c\u8fd9\u91cc1.<\/span><span style=\"color: #6CB6FF\">1.1<\/span><span style=\"color: #ADBAC7\">.<\/span><span style=\"color: #6CB6FF\">15<\/span><span style=\"color: #ADBAC7\">::test1\u5c11\u4e86\u4e00\u4e2a\u5192\u53f7\u201c\uff1a\u201d\u53ea\u67091\u4e2a\uff0c\u5c06\u4f1a\u4f7f\u7528ssh\u8fdb\u884c\u8fde\u63a5\uff0c\u9700\u8981\u8f93\u5165\u5bc6\u7801\uff0c\u4f1a\u9ebb\u70e6<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#adbac7;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"\u6ce8\u610f3\uff1a\u6e90\u76ee\u5f55\/backup\/rsync\/\u6700\u540e\u5982\u679c\u6ca1\u6709\u659c\u6760\u201c\/\u201d\uff0c\u5728\u5907\u4efd\u8fc7\u53bb\u7684\u65f6\u5019\u4f1a\u5728\u6839\u76ee\u5f55\u4e0b\u65b0\u5efa\u4e00\u4e2arsync\u6587\u4ef6\u5939\uff0c\u52a0\u4e86\u659c\u6760\u662f\u4e0d\u5305\u542b\u8be5\u6587\u4ef6\u5939\u7684\u610f\u601d\" style=\"color:#22272e;display:none;background-color:#adbac7\" aria-label=\"Copy\" data-copied-text=\"Copied!\" data-has-text-button=\"textSimple\" data-inside-header-type=\"none\" aria-live=\"polite\" class=\"code-block-pro-copy-button\"><span class=\"cbp-btn-text\">Copy<\/span><\/span><pre class=\"shiki github-dark-dimmed\" style=\"background-color: #22272e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #ADBAC7\">\u6ce8\u610f3\uff1a\u6e90\u76ee\u5f55<\/span><span style=\"color: #F47067\">\/<\/span><span style=\"color: #ADBAC7\">backup<\/span><span style=\"color: #F47067\">\/<\/span><span style=\"color: #ADBAC7\">rsync<\/span><span style=\"color: #F47067\">\/<\/span><span style=\"color: #ADBAC7\">\u6700\u540e\u5982\u679c\u6ca1\u6709\u659c\u6760\u201c<\/span><span style=\"color: #F47067\">\/<\/span><span style=\"color: #ADBAC7\">\u201d\uff0c\u5728\u5907\u4efd\u8fc7\u53bb\u7684\u65f6\u5019\u4f1a\u5728\u6839\u76ee\u5f55\u4e0b\u65b0\u5efa\u4e00\u4e2arsync\u6587\u4ef6\u5939\uff0c\u52a0\u4e86\u659c\u6760\u662f\u4e0d\u5305\u542b\u8be5\u6587\u4ef6\u5939\u7684\u610f\u601d<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#adbac7;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"\u7ec8\u7aef\u663e\u793a\uff1a\n\nroot@Kimi-Main:~# rsync -avzh \/backup\/rsync\/ 1.1.1.15::test1\n\nsending incremental file list\n.\/\n1p-2\ntest-1pnale\n\nsent 161 bytes  received 60 bytes  88.40 bytes\/sec\ntotal size is 0  speedup is 0.00\n\" style=\"color:#22272e;display:none;background-color:#adbac7\" aria-label=\"Copy\" data-copied-text=\"Copied!\" data-has-text-button=\"textSimple\" data-inside-header-type=\"none\" aria-live=\"polite\" class=\"code-block-pro-copy-button\"><span class=\"cbp-btn-text\">Copy<\/span><\/span><pre class=\"shiki github-dark-dimmed\" style=\"background-color: #22272e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #ADBAC7\">\u7ec8\u7aef\u663e\u793a\uff1a<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #ADBAC7\">root@Kimi<\/span><span style=\"color: #F47067\">-<\/span><span style=\"color: #F69D50\">Main<\/span><span style=\"color: #ADBAC7\">:<\/span><span style=\"color: #F47067\">~<\/span><span style=\"color: #ADBAC7\"># rsync <\/span><span style=\"color: #F47067\">-<\/span><span style=\"color: #ADBAC7\">avzh <\/span><span style=\"color: #F47067\">\/<\/span><span style=\"color: #ADBAC7\">backup<\/span><span style=\"color: #F47067\">\/<\/span><span style=\"color: #ADBAC7\">rsync<\/span><span style=\"color: #F47067\">\/<\/span><span style=\"color: #ADBAC7\"> <\/span><span style=\"color: #6CB6FF\">1.1<\/span><span style=\"color: #ADBAC7\">.<\/span><span style=\"color: #6CB6FF\">1.15<\/span><span style=\"color: #ADBAC7\">::test1<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #ADBAC7\">sending incremental file list<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ADBAC7\">.<\/span><span style=\"color: #F47067\">\/<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ADBAC7\">1p<\/span><span style=\"color: #F47067\">-<\/span><span style=\"color: #6CB6FF\">2<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ADBAC7\">test<\/span><span style=\"color: #F47067\">-<\/span><span style=\"color: #ADBAC7\">1pnale<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #ADBAC7\">sent <\/span><span style=\"color: #6CB6FF\">161<\/span><span style=\"color: #ADBAC7\"> bytes  received <\/span><span style=\"color: #6CB6FF\">60<\/span><span style=\"color: #ADBAC7\"> bytes  <\/span><span style=\"color: #6CB6FF\">88.40<\/span><span style=\"color: #ADBAC7\"> bytes<\/span><span style=\"color: #F47067\">\/<\/span><span style=\"color: #ADBAC7\">sec<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ADBAC7\">total size is <\/span><span style=\"color: #6CB6FF\">0<\/span><span style=\"color: #ADBAC7\">  speedup is <\/span><span style=\"color: #6CB6FF\">0.00<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%A6%82%E6%9E%9C%E8%A6%81%E5%8A%A0%E5%AF%86%E7%A0%81\"><\/span>\u5982\u679c\u8981\u52a0\u5bc6\u7801<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u5728etc\/rsyncd.conf\u6587\u4ef6\u91cc\uff0c\u6a21\u5757\u7684\u4e0b\u65b9\uff0c\u6dfb\u52a0\u4e00\u884c\uff1a<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#adbac7;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"secrets file = \/etc\/rsyncd.secrets \n\n#\/etc\/rsyncd.secrets \u8def\u5f84\u7684\u5bc6\u7801\u662f\u660e\u6587\uff0c\u6743\u9650600\u624d\u80fd\u4f7f\u7528\uff1a\n\n#chmod 600 \/etc\/rsyncd.secrets\" style=\"color:#22272e;display:none;background-color:#adbac7\" aria-label=\"Copy\" data-copied-text=\"Copied!\" data-has-text-button=\"textSimple\" data-inside-header-type=\"none\" aria-live=\"polite\" class=\"code-block-pro-copy-button\"><span class=\"cbp-btn-text\">Copy<\/span><\/span><pre class=\"shiki github-dark-dimmed\" style=\"background-color: #22272e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #ADBAC7\">secrets file <\/span><span style=\"color: #F47067\">=<\/span><span style=\"color: #ADBAC7\"> <\/span><span style=\"color: #F47067\">\/<\/span><span style=\"color: #ADBAC7\">etc<\/span><span style=\"color: #F47067\">\/<\/span><span style=\"color: #ADBAC7\">rsyncd.secrets <\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #ADBAC7\">#<\/span><span style=\"color: #F47067\">\/<\/span><span style=\"color: #ADBAC7\">etc<\/span><span style=\"color: #F47067\">\/<\/span><span style=\"color: #ADBAC7\">rsyncd.secrets \u8def\u5f84\u7684\u5bc6\u7801\u662f\u660e\u6587\uff0c\u6743\u9650600\u624d\u80fd\u4f7f\u7528\uff1a<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #ADBAC7\">#chmod <\/span><span style=\"color: #6CB6FF\">600<\/span><span style=\"color: #ADBAC7\"> <\/span><span style=\"color: #F47067\">\/<\/span><span style=\"color: #ADBAC7\">etc<\/span><span style=\"color: #F47067\">\/<\/span><span style=\"color: #ADBAC7\">rsyncd.secrets<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u5982\u679c\u8981\u907f\u514d\u6bcf\u6b21\u90fd\u8f93\u5165\u5bc6\u7801\uff0c\u518d\u5728\u65b0\u5efa\u4e00\u4e2a\u6587\u4ef6\uff0c\/etc\/rsync.password   \u5c06\u5bc6\u7801\u4e5f\u8f93\u5165\u5230\u8be5\u6587\u4ef6\u91cc\uff0c<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#adbac7;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"rsync -av --password-file=\/etc\/rsync.password root@1.1.1.15::test1\" style=\"color:#22272e;display:none;background-color:#adbac7\" aria-label=\"Copy\" data-copied-text=\"Copied!\" data-has-text-button=\"textSimple\" data-inside-header-type=\"none\" aria-live=\"polite\" class=\"code-block-pro-copy-button\"><span class=\"cbp-btn-text\">Copy<\/span><\/span><pre class=\"shiki github-dark-dimmed\" style=\"background-color: #22272e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #ADBAC7\">rsync <\/span><span style=\"color: #F47067\">-<\/span><span style=\"color: #ADBAC7\">av <\/span><span style=\"color: #F47067\">--<\/span><span style=\"color: #ADBAC7\">password<\/span><span style=\"color: #F47067\">-<\/span><span style=\"color: #ADBAC7\">file<\/span><span style=\"color: #F47067\">=\/<\/span><span style=\"color: #ADBAC7\">etc<\/span><span style=\"color: #F47067\">\/<\/span><span style=\"color: #ADBAC7\">rsync.password root@<\/span><span style=\"color: #6CB6FF\">1.1<\/span><span style=\"color: #ADBAC7\">.<\/span><span style=\"color: #6CB6FF\">1.15<\/span><span style=\"color: #ADBAC7\">::test1<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%A6%82%E6%9E%9C%E9%9C%80%E8%A6%81%E5%AE%8C%E5%85%A8%E5%90%8C%E6%AD%A5%EF%BC%88%E5%8C%85%E6%8B%AC%E5%88%A0%E9%99%A4%E6%93%8D%E4%BD%9C%EF%BC%89\"><\/span>\u5982\u679c\u9700\u8981\u5b8c\u5168\u540c\u6b65\uff08\u5305\u62ec\u5220\u9664\u64cd\u4f5c\uff09<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u6dfb\u52a0\u547d\u4ee4&#8211;delete\u5373\u53ef<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#adbac7;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"rsync -avzh --delete \/backup\/rsync\/ 1.1.1.15::test1\" style=\"color:#22272e;display:none;background-color:#adbac7\" aria-label=\"Copy\" data-copied-text=\"Copied!\" data-has-text-button=\"textSimple\" data-inside-header-type=\"none\" aria-live=\"polite\" class=\"code-block-pro-copy-button\"><span class=\"cbp-btn-text\">Copy<\/span><\/span><pre class=\"shiki github-dark-dimmed\" style=\"background-color: #22272e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #ADBAC7\">rsync <\/span><span style=\"color: #F47067\">-<\/span><span style=\"color: #ADBAC7\">avzh <\/span><span style=\"color: #F47067\">--delete<\/span><span style=\"color: #ADBAC7\"> <\/span><span style=\"color: #F47067\">\/<\/span><span style=\"color: #ADBAC7\">backup<\/span><span style=\"color: #F47067\">\/<\/span><span style=\"color: #ADBAC7\">rsync<\/span><span style=\"color: #F47067\">\/<\/span><span style=\"color: #ADBAC7\"> <\/span><span style=\"color: #6CB6FF\">1.1<\/span><span style=\"color: #ADBAC7\">.<\/span><span style=\"color: #6CB6FF\">1.15<\/span><span style=\"color: #ADBAC7\">::test1<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%85%B6%E4%BB%96%E5%A4%87%E4%BB%BD%E6%96%87%E7%AB%A0\"><\/span>\u5176\u4ed6\u5907\u4efd\u6587\u7ae0<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-kimi-blog wp-block-embed-kimi-blog\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"9wYD1u51yr\"><a href=\"https:\/\/blog.kimi.ee\/?p=1798\">\u3010\u6559\u7a0b\u3011Docker\u4e00\u952e\u6279\u91cf\u5907\u4efd\u6062\u590d\u811a\u672c<\/a><\/blockquote><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"\u300a\u3010\u6559\u7a0b\u3011Docker\u4e00\u952e\u6279\u91cf\u5907\u4efd\u6062\u590d\u811a\u672c\u300b\u2014KIMI BLOG\" src=\"https:\/\/blog.kimi.ee\/?p=1798&#038;embed=true#?secret=9mCMMvNkfL#?secret=9wYD1u51yr\" data-secret=\"9wYD1u51yr\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-kimi-blog wp-block-embed-kimi-blog\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"bC9mYZcnMI\"><a href=\"https:\/\/blog.kimi.ee\/?p=1802\">\u3010\u6559\u7a0b\u3011Tailscale\u5728Docker\u4e2d\u90e8\u7f72\uff0c\u7ec4\u5efa\u865a\u62df\u5c40\u57df\u7f51\u4ee5\u53ca\u5185\u7f51\u7a7f\u900f\uff0c<\/a><\/blockquote><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"\u300a\u3010\u6559\u7a0b\u3011Tailscale\u5728Docker\u4e2d\u90e8\u7f72\uff0c\u7ec4\u5efa\u865a\u62df\u5c40\u57df\u7f51\u4ee5\u53ca\u5185\u7f51\u7a7f\u900f\uff0c\u300b\u2014KIMI BLOG\" src=\"https:\/\/blog.kimi.ee\/?p=1802&#038;embed=true#?secret=dttdXxiwVO#?secret=bC9mYZcnMI\" data-secret=\"bC9mYZcnMI\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-kimi-blog wp-block-embed-kimi-blog\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"JHZfpjy941\"><a href=\"https:\/\/blog.kimi.ee\/?p=1866\">\u3010\u6559\u7a0b\u30111Panel\u9762\u677f\u5b89\u88c5\/\u4ece\u5b9d\u5854\u8fc1\u79fbwordpress\u6307\u5357<\/a><\/blockquote><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"\u300a\u3010\u6559\u7a0b\u30111Panel\u9762\u677f\u5b89\u88c5\/\u4ece\u5b9d\u5854\u8fc1\u79fbwordpress\u6307\u5357\u300b\u2014KIMI BLOG\" src=\"https:\/\/blog.kimi.ee\/?p=1866&#038;embed=true#?secret=4a9Jj0onB0#?secret=JHZfpjy941\" data-secret=\"JHZfpjy941\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-layout-1 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-kimi-blog wp-block-embed-kimi-blog\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"1p7gr9MbMh\"><a href=\"https:\/\/blog.kimi.ee\/?p=1892\">\u5e38\u7528docker\u5bb9\u5668\u90e8\u7f72\u547d\u4ee4<\/a><\/blockquote><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"\u300a\u5e38\u7528docker\u5bb9\u5668\u90e8\u7f72\u547d\u4ee4\u300b\u2014KIMI BLOG\" src=\"https:\/\/blog.kimi.ee\/?p=1892&#038;embed=true#?secret=SHHeC82NtC#?secret=1p7gr9MbMh\" data-secret=\"1p7gr9MbMh\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n<\/div>\n<\/div>\n\n\n\n<p>Blibili<a href=\"https:\/\/www.bilibili.com\/video\/BV1qZ4y137En\/?share_source=copy_web&amp;vd_source=f141d3032ec7b2e44fe5634e02bcb0a7\" data-type=\"link\" data-id=\"https:\/\/www.bilibili.com\/video\/BV1qZ4y137En\/?share_source=copy_web&amp;vd_source=f141d3032ec7b2e44fe5634e02bcb0a7\">\u3010\u3010\u53f8\u6ce2\u56fe\u3011\u7a33\u5b9a\u5f02\u5730\u5907\u4efd\u4e0d\u662f\u68a6\uff0c\u6700\u201c\u7b80\u5355\u201d\u7684\u6587\u4ef6\u540c\u6b65\u8f6f\u4ef6RSYNC\u5b9e\u6218\u6559\u5b66\u653b\u7565\u3011 <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5047\u8bbe\u7b2c\u4e00\u53f0ip\u662f1.1.1.1\uff0c\u767b\u5f55\u7b2c\u4e00 &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"\u3010\u5907\u4efd\u3011\u4e24\u53f0\u670d\u52a1\u5668\u4e4b\u95f4\u5982\u4f55\u8bbe\u7f6e\u65e0\u5bc6\u7801ssh\u8bbf\u95ee\" class=\"read-more button\" href=\"https:\/\/blog.kimi.ee\/?p=1927#more-1927\">Read more<span class=\"screen-reader-text\">\u3010\u5907\u4efd\u3011\u4e24\u53f0\u670d\u52a1\u5668\u4e4b\u95f4\u5982\u4f55\u8bbe\u7f6e\u65e0\u5bc6\u7801ssh\u8bbf\u95ee<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[131,126,107,130,127,129,128],"_links":{"self":[{"href":"https:\/\/blog.kimi.ee\/index.php?rest_route=\/wp\/v2\/posts\/1927"}],"collection":[{"href":"https:\/\/blog.kimi.ee\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.kimi.ee\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.kimi.ee\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.kimi.ee\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1927"}],"version-history":[{"count":11,"href":"https:\/\/blog.kimi.ee\/index.php?rest_route=\/wp\/v2\/posts\/1927\/revisions"}],"predecessor-version":[{"id":1952,"href":"https:\/\/blog.kimi.ee\/index.php?rest_route=\/wp\/v2\/posts\/1927\/revisions\/1952"}],"wp:attachment":[{"href":"https:\/\/blog.kimi.ee\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1927"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.kimi.ee\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1927"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.kimi.ee\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1927"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}