{"id":99327,"date":"2026-09-02T12:42:03","date_gmt":"2026-09-02T04:42:03","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/99327.html"},"modified":"2026-09-02T12:42:03","modified_gmt":"2026-09-02T04:42:03","slug":"%e5%85%b3%e9%97%adssh%e5%af%86%e7%a0%81%e7%99%bb%e5%bd%95%ef%bc%8cssh-%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8%e5%85%ac%e9%92%a5%e5%af%86%e9%92%a5%e7%99%bb%e5%bd%95%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%88","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/99327.html","title":{"rendered":"\u5173\u95edSSH\u5bc6\u7801\u767b\u5f55\uff0cSSH \u5982\u4f55\u4f7f\u7528\u516c\u94a5\u5bc6\u94a5\u767b\u5f55\u670d\u52a1\u5668\uff08\u89e3\u51b3\u670d\u52a1\u5668\u7ecf\u5e38\u88ab\u653b\u51fb\u95ee\u9898\uff09"},"content":{"rendered":"<h2>\u524d\u8a00<\/h2>\n<p>\u5728 Linux \u7cfb\u7edf\u4e2d&#xff0c;SSH \u5bc6\u94a5\u767b\u5f55\u662f\u66ff\u4ee3\u4f20\u7edf\u5bc6\u7801\u767b\u5f55\u7684\u66f4\u5b89\u5168\u65b9\u5f0f&#xff0c;\u80fd\u6709\u6548\u907f\u514d\u5bc6\u7801\u88ab\u66b4\u529b\u7834\u89e3\u7684\u98ce\u9669\u3002&#xff08;\u53ef\u80fd\u7b49\u5230\u54ea\u5929\u4f60\u7684\u670d\u52a1\u5668\u53d7\u5230\u4e0d\u660e\u653b\u51fb\u65f6&#xff0c;\u4f60\u5c31\u4f1a\u660e\u767d\u8fd9\u4e48\u505a\u7684\u91cd\u8981\u6027&#xff09;<\/p>\n<p>\u6ce8\u610f&#xff1a;\u8fd9\u91cc\u63a8\u8350\u6240\u6709\u64cd\u4f5c\u4e0d\u8981\u5728root\u7528\u6237\u4e0b\u8fdb\u884c&#xff0c;\u800c\u662f\u65b0\u589e\u81ea\u5df1\u7684\u4e13\u6709\u7528\u6237&#xff0c;\u5f53\u7136\u4f60\u7528root\u4e5f\u53ef\u4ee5&#xff0c;\u53ea\u662f\u5b89\u5168\u6027\u6ca1\u90a3\u4e48\u9ad8<\/p>\n<p><span class=\"token comment\"># \u6dfb\u52a0\u7528\u6237 adduser \u81ea\u5b9a\u4e49\u7528\u6237\u540d<\/span><br \/>\n<span class=\"token function\">sudo<\/span> adduser xiangyu<\/p>\n<p><span class=\"token comment\"># \u5207\u6362\u7528\u6237 su \u81ea\u5b9a\u4e49\u7684\u7528\u6237\u540d<\/span><br \/>\n<span class=\"token function\">su<\/span> xiangyu<\/p>\n<p><span class=\"token comment\"># \u521b\u5efa .ssh \u76ee\u5f55<\/span><br \/>\n<span class=\"token function\">mkdir<\/span> <span class=\"token parameter variable\">-p<\/span> ~\/.ssh<\/p>\n<h2>\u4e00\u3001\u4fee\u6539 SSH \u914d\u7f6e\u6587\u4ef6<\/h2>\n<p>\u9996\u5148\u9700\u8981\u767b\u5f55 Linux \u670d\u52a1\u5668&#xff0c;\u901a\u8fc7\u4fee\u6539 sshd_config \u6587\u4ef6\u5f00\u542f\u516c\u94a5\u9a8c\u8bc1\u529f\u80fd\u3002<\/p>\n<h3>1. \u767b\u5f55\u670d\u52a1\u5668\u5e76\u7f16\u8f91\u914d\u7f6e\u6587\u4ef6<\/h3>\n<p>\u4f7f\u7528\u5bc6\u7801\u767b\u5f55\u670d\u52a1\u5668\u540e&#xff0c;\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u6253\u5f00 SSH \u914d\u7f6e\u6587\u4ef6&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u5148\u5207\u6362root\u4e0b\u64cd\u4f5c<\/span><br \/>\n<span class=\"token function\">su<\/span> root<br \/>\n<span class=\"token comment\"># \u7f16\u8f91SSH\u914d\u7f6e\u6587\u4ef6<\/span><br \/>\n<span class=\"token function\">vim<\/span> \/etc\/ssh\/sshd_config<\/p>\n<h3>2. \u8c03\u6574\u5173\u952e\u914d\u7f6e\u9879<\/h3>\n<p>\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u627e\u5230\u4ee5\u4e0b 4 \u4e2a\u914d\u7f6e\u9879&#xff0c;\u53d6\u6d88\u6ce8\u91ca&#xff08;\u82e5\u6709 # \u524d\u7f00&#xff09;\u5e76\u4fee\u6539\u4e3a\u6307\u5b9a\u503c&#xff1a;<\/p>\n<table>\n<tr>\u914d\u7f6e\u9879\u63a8\u8350\u503c\u914d\u7f6e\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>RSAAuthentication<\/td>\n<td>yes<\/td>\n<td>\u5f00\u542f\u57fa\u4e8e RSA \u7b97\u6cd5\u7684\u5b89\u5168\u9a8c\u8bc1&#xff08;\u517c\u5bb9\u4f20\u7edf RSA \u5bc6\u94a5&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>PubkeyAuthentication<\/td>\n<td>yes<\/td>\n<td>\u5f00\u542f\u516c\u94a5\u767b\u5f55\u9a8c\u8bc1&#xff08;\u6838\u5fc3\u914d\u7f6e&#xff0c;\u5fc5\u987b\u8bbe\u4e3a yes&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>AuthorizedKeyFiles<\/td>\n<td>.ssh\/authorized_keys<\/td>\n<td>\u6307\u5b9a\u5b58\u50a8\u5ba2\u6237\u7aef\u516c\u94a5\u7684\u6587\u4ef6\u8def\u5f84&#xff08;\u9ed8\u8ba4\u8def\u5f84&#xff0c;\u65e0\u9700\u4fee\u6539&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>StrictModes<\/td>\n<td>no<\/td>\n<td>\u5173\u95ed SSH \u767b\u5f55\u524d\u5bf9\u7528\u6237\u5bb6\u76ee\u5f55\u3001rhosts \u6587\u4ef6\u7684\u6743\u9650\u68c0\u67e5&#xff08;\u907f\u514d\u6743\u9650\u95ee\u9898\u5bfc\u81f4\u767b\u5f55\u5931\u8d25&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>PermitRootLogin<\/td>\n<td>no\u6216\u8005prohibit-password<\/td>\n<td>\u9ed8\u8ba4\u4e3ayes&#xff0c;\u610f\u601d\u662f&#xff1a;\u5141\u8bb8 root \u7528\u6237\u901a\u8fc7 SSH \u76f4\u63a5\u767b\u5f55\u670d\u52a1\u5668\u3002\u4e0d\u5efa\u8bae\u8bbe\u4e3a yes&#xff0c;\u56e0\u4e3aroot \u662f\u9ed1\u5ba2\u7b2c\u4e00\u4e2a\u5c1d\u8bd5\u7684\u7528\u6237\u540d&#xff0c;\u5bb9\u6613\u88ab\u66b4\u529b\u7834\u89e3\u3002\u8bbe\u4e3a no&#xff1a;\u7981\u6b62 root \u767b\u5f55&#xff0c;\u5fc5\u987b\u5148\u767b\u5f55\u666e\u901a\u7528\u6237&#xff0c;\u518d su &#8211; \u6216 sudo \u5207\u6362\u3002\u5982\u679c\u5fc5\u987b\u7528 root&#xff0c;\u5efa\u8bae\u7528\u8bbe\u7f6e\u6210prohibit-password&#xff0c;\u8fd9\u6837\u53ea\u5141\u8bb8\u5bc6\u94a5\u767b\u5f55&#xff0c;\u4e0d\u5141\u8bb8\u5bc6\u7801\u767b\u5f55<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>3.\u91cd\u542f SSH \u670d\u52a1\u4f7f\u914d\u7f6e\u751f\u6548<\/h3>\n<p>\u4fee\u6539\u5b8c\u6210\u540e&#xff0c;\u4fdd\u5b58\u5e76\u9000\u51fa vim&#xff08;\u6309 Esc \u540e\u8f93\u5165 :wq&#xff09;&#xff0c;\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u91cd\u542f SSH \u670d\u52a1&#xff1a;<\/p>\n<p>systemctl restart sshd.service<\/p>\n<p>linux\u7684\u5404\u4e2a\u53d1\u884c\u7248\u672c&#xff0c;SSH\u670d\u52a1\u547d\u4ee4\u7565\u6709\u5dee\u5f02&#xff0c; \u5173\u952e\u533a\u522b&#xff1a;Ubuntu\/Debian \u7684 SSH \u670d\u52a1\u540d\u662f ssh&#xff0c;\u5176\u4ed6\u591a\u6570\u7248\u672c\u662fsshd&#xff0c;centos7\u662f sshd.service<\/p>\n<h2>\u4e8c\u3001\u5ba2\u6237\u7aef&#xff08;\u672c\u5730\u7535\u8111&#xff09;\u914d\u7f6e&#xff1a;\u751f\u6210\u516c\u94a5\u4e0e\u79c1\u94a5<\/h2>\n<p>\u4ee5 macOS \u5ba2\u6237\u7aef\u4e3a\u4f8b&#xff08;Windows \u53ef\u901a\u8fc7 Git Bash\u3001PowerShell \u64cd\u4f5c&#xff0c;\u6b65\u9aa4\u4e00\u81f4&#xff09;&#xff0c;\u751f\u6210\u7528\u4e8e\u767b\u5f55\u7684\u5bc6\u94a5\u5bf9&#xff08;\u516c\u94a5 &#043; \u79c1\u94a5&#xff09;\u3002<\/p>\n<h3>1. \u8fdb\u5165\u5ba2\u6237\u7aef .ssh \u76ee\u5f55<\/h3>\n<p>\u6253\u5f00\u7ec8\u7aef&#xff0c;\u6267\u884c\u547d\u4ee4\u8fdb\u5165\u7528\u6237\u76ee\u5f55\u4e0b\u7684 .ssh \u6587\u4ef6\u5939&#xff08;\u82e5\u4e0d\u5b58\u5728\u4f1a\u81ea\u52a8\u521b\u5efa&#xff09;&#xff1a;<\/p>\n<p><span class=\"token builtin class-name\">cd<\/span> ~\/.ssh<\/p>\n<h3>2. \u751f\u6210 ed25519 \u5bc6\u94a5\u5bf9<\/h3>\n<p>\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u751f\u6210\u5bc6\u94a5&#xff0c;\u652f\u6301\u81ea\u5b9a\u4e49\u5bc6\u94a5\u540d\u79f0\u548c\u5173\u8054\u90ae\u7bb1&#xff08;\u4fbf\u4e8e\u533a\u5206\u591a\u53f0\u670d\u52a1\u5668\u5bc6\u94a5&#xff09;&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u57fa\u7840\u751f\u6210\u547d\u4ee4&#xff08;\u9ed8\u8ba4\u5bc6\u94a5\u540d\u4e3a id_ed25519&#xff09;<\/span><br \/>\nssh-keygen <span class=\"token parameter variable\">-t<\/span> ed25519   <span class=\"token comment\"># \u63a8\u8350 ed25519 \u7b97\u6cd5&#xff08;\u6bd4 RSA \u66f4\u5b89\u5168\u9ad8\u6548&#xff09;<\/span><\/p>\n<p><span class=\"token comment\"># \u81ea\u5b9a\u4e49\u5bc6\u94a5\u540d\u79f0 &#043; \u5173\u8054\u90ae\u7bb1&#xff08;\u63a8\u8350&#xff0c;\u4f8b\u5982\u533a\u5206\u670d\u52a1\u5668\u7528\u9014&#xff09;<\/span><br \/>\nssh-keygen <span class=\"token parameter variable\">-t<\/span> ed25519 <span class=\"token parameter variable\">-C<\/span> <span class=\"token string\">&#034;server_linux&#064;example.com&#034;<\/span> <span class=\"token parameter variable\">-f<\/span> <span class=\"token string\">&#034;id_ed25519&#034;<\/span><\/p>\n<h3>3. \u5b8c\u6210\u5bc6\u94a5\u751f\u6210<\/h3>\n<p>\u6267\u884c\u547d\u4ee4\u540e\u6309\u63d0\u793a\u64cd\u4f5c&#xff1a;<\/p>\n<ul>\n<li>\u82e5\u4e0d\u9700\u8981\u4e3a\u5bc6\u94a5\u8bbe\u7f6e\u5bc6\u7801&#xff08;\u7b80\u5316\u767b\u5f55&#xff0c;\u9002\u5408\u4e2a\u4eba\u4f7f\u7528&#xff09;&#xff0c;\u76f4\u63a5\u6309 3 \u6b21\u56de\u8f66&#xff1b;<\/li>\n<li>\u82e5\u9700\u8981\u66f4\u9ad8\u5b89\u5168\u6027&#xff08;\u9632\u6b62\u79c1\u94a5\u6cc4\u9732\u540e\u88ab\u6ee5\u7528&#xff09;&#xff0c;\u53ef\u8f93\u5165\u5bc6\u7801\u5e76\u786e\u8ba4\u3002<\/li>\n<\/ul>\n<p>\u751f\u6210\u6210\u529f\u540e&#xff0c;.ssh \u76ee\u5f55\u4e0b\u4f1a\u51fa\u73b0\u4e24\u4e2a\u6587\u4ef6&#xff1a;<\/p>\n<ul>\n<li>\u79c1\u94a5\u6587\u4ef6&#xff08;\u5982 id_ed25519 &#xff09;&#xff1a;\u4fdd\u5b58\u5728\u5ba2\u6237\u7aef&#xff0c;\u4e25\u7981\u6cc4\u9732\u7ed9\u4ed6\u4eba&#xff1b;<\/li>\n<li>\u516c\u94a5\u6587\u4ef6&#xff08;\u5982 id_ed25519.pub &#xff09;&#xff1a;\u9700\u4e0a\u4f20\u5230 Linux \u670d\u52a1\u5668\u3002<\/li>\n<\/ul>\n<h2>\u4e09\u3001\u670d\u52a1\u5668\u7aef&#xff1a;\u6dfb\u52a0\u5ba2\u6237\u7aef\u516c\u94a5\u5e76\u8bbe\u7f6e\u6743\u9650<\/h2>\n<p>\u5c06\u5ba2\u6237\u7aef\u751f\u6210\u7684\u516c\u94a5\u4e0a\u4f20\u5230\u670d\u52a1\u5668&#xff0c;\u5e76\u914d\u7f6e\u6b63\u786e\u7684\u6587\u4ef6\u6743\u9650&#xff08;\u6743\u9650\u9519\u8bef\u4f1a\u5bfc\u81f4\u516c\u94a5\u767b\u5f55\u5931\u8d25&#xff0c;\u662f\u5e38\u89c1\u5751\u70b9&#xff09;\u3002<\/p>\n<h3>1. \u4e0a\u4f20\u5ba2\u6237\u7aef\u516c\u94a5\u5230\u670d\u52a1\u5668<\/h3>\n<h4>\u65b9\u6cd5\u4e00 scp \u547d\u4ee4<\/h4>\n<ul>\n<li>\u901a\u8fc7 scp \u547d\u4ee4\u5c06\u5ba2\u6237\u7aef\u516c\u94a5\u6587\u4ef6\u4e0a\u4f20\u5230\u670d\u52a1\u5668\u7684 ~\/.ssh\/ \u76ee\u5f55&#xff08;\u4ee5\u9ed8\u8ba4\u5bc6\u94a5\u540d id_ed25519.pub \u4e3a\u4f8b&#xff09;&#xff1a;<\/li>\n<\/ul>\n<p><span class=\"token comment\"># \u683c\u5f0f&#xff1a;scp \u5ba2\u6237\u7aef\u516c\u94a5\u8def\u5f84 \u670d\u52a1\u5668\u7528\u6237\u540d&#064;\u670d\u52a1\u5668IP:\u670d\u52a1\u5668\u76ee\u6807\u8def\u5f84<\/span><br \/>\n<span class=\"token function\">scp<\/span> ~\/.ssh\/id_ed25519.pub root&#064;xxx.xxx.xxx.xxx:~\/.ssh\/<\/p>\n<p>\u6267\u884c\u540e\u8f93\u5165\u670d\u52a1\u5668\u5bc6\u7801&#xff0c;\u5b8c\u6210\u516c\u94a5\u4e0a\u4f20\u3002<\/p>\n<ul>\n<li>\u5408\u5e76\u516c\u94a5\u5230 authorized_keys \u767b\u5f55\u670d\u52a1\u5668&#xff0c;\u8fdb\u5165 ~\/.ssh\/ \u76ee\u5f55&#xff0c;\u5c06\u4e0a\u4f20\u7684\u516c\u94a5\u8ffd\u52a0\u5230 authorized_keys \u6587\u4ef6&#xff08;\u82e5\u6587\u4ef6\u4e0d\u5b58\u5728\u4f1a\u81ea\u52a8\u521b\u5efa&#xff09;&#xff1a;<\/li>\n<\/ul>\n<p><span class=\"token comment\"># \u8fdb\u5165 .ssh \u76ee\u5f55<\/span><br \/>\n<span class=\"token builtin class-name\">cd<\/span> ~\/.ssh\/<\/p>\n<p><span class=\"token comment\"># \u8ffd\u52a0\u516c\u94a5\u5230 authorized_keys&#xff08;\u907f\u514d\u8986\u76d6\u5df2\u6709\u516c\u94a5&#xff09;<\/span><br \/>\n<span class=\"token function\">cat<\/span> id_ed25519.pub <span class=\"token operator\">&gt;&gt;<\/span> authorized_keys<\/p>\n<p><span class=\"token comment\"># \u5220\u9664\u4e0a\u4f20\u7684\u539f\u59cb\u516c\u94a5\u6587\u4ef6&#xff08;\u6e05\u7406\u5197\u4f59\u6587\u4ef6&#xff09;<\/span><br \/>\n<span class=\"token function\">rm<\/span> <span class=\"token parameter variable\">-f<\/span> id_ed25519.pub<\/p>\n<h4>\u65b9\u6cd5\u4e8c ssh-copy-id\u547d\u4ee4<\/h4>\n<p>\u8fd0\u884c\u4e0b\u9762\u547d\u4ee4&#xff08;\u66ff\u6362 user \u548c \u670d\u52a1\u5668IP&#xff09;&#xff1a;<\/p>\n<p>ssh-copy-id user&#064;\u670d\u52a1\u5668IP<\/p>\n<p>\u8f93\u5165\u4e00\u6b21\u670d\u52a1\u5668\u5bc6\u7801&#xff0c;\u641e\u5b9a\u3002<\/p>\n<h4>\u65b9\u6cd5\u4e09 \u624b\u52a8\u7c98\u8d34\u590d\u5236<\/h4>\n<p>\u590d\u5236id_rsa.pub\u7684\u5185\u5bb9&#xff0c;\u7136\u540e\u767b\u5f55\u670d\u52a1\u5668&#xff0c;\u7c98\u8d34\u5230 ~\/.ssh\/authorized_keys \u6587\u4ef6\u91cc\u3002<\/p>\n<h4>\u65b9\u6cd5\u56db \u901a\u8fc7\u6307\u4ee4\u7ed9\u6587\u4ef6\u8ffd\u52a0\u6587\u672c<\/h4>\n<p><span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;\u516c\u94a5\u5185\u5bb9&#xff08;\u4e5f\u5c31\u662fxxx.pub\u91cc\u7684\u5185\u5bb9&#xff09;&#034;<\/span> <span class=\"token operator\">&gt;&gt;<\/span> ~\/.ssh\/authorized_keys<\/p>\n<p>authorized_keys\u6587\u4ef6\u4e0d\u5b58\u5728\u7684\u8bdd\u4f1a\u76f4\u63a5\u65b0\u589e<\/p>\n<h3>3. \u914d\u7f6e\u6b63\u786e\u7684\u6743\u9650&#xff08;\u5173\u952e\u6b65\u9aa4&#xff09;<\/h3>\n<p>SSH \u5bf9\u76ee\u5f55\u548c\u6587\u4ef6\u6743\u9650\u6709\u4e25\u683c\u8981\u6c42&#xff0c;\u6743\u9650\u8fc7\u5bbd\u4f1a\u5bfc\u81f4\u767b\u5f55\u5931\u8d25&#xff0c;\u9700\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u8bbe\u7f6e\u6743\u9650&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u8bbe\u7f6e .ssh \u76ee\u5f55\u6743\u9650&#xff08;\u4ec5\u6240\u6709\u8005\u53ef\u8bfb\u5199\u6267\u884c&#xff0c;\u5176\u4ed6\u7528\u6237\u65e0\u6743\u9650&#xff09;<\/span><br \/>\n<span class=\"token function\">chmod<\/span> <span class=\"token number\">700<\/span> ~\/.ssh\/<\/p>\n<p><span class=\"token comment\"># \u8bbe\u7f6e authorized_keys \u6587\u4ef6\u6743\u9650&#xff08;\u4ec5\u6240\u6709\u8005\u53ef\u8bfb\u5199&#xff0c;\u5176\u4ed6\u7528\u6237\u65e0\u6743\u9650&#xff09;<\/span><br \/>\n<span class=\"token function\">chmod<\/span> <span class=\"token number\">644<\/span> ~\/.ssh\/authorized_keys<\/p>\n<p>\u6211\u81ea\u5df1\u914d\u7f6e\u4e5f\u7ecf\u5e38\u9057\u5fd8\u8fd9\u4e00\u6b65&#xff0c;\u5bfc\u81f4\u8fde\u63a5\u4e0d\u4e0a<\/p>\n<h2>\u56db\u3001\u4fee\u6539SSH\u8fde\u63a5\u7aef\u53e3\u548c\u68c0\u67e5 SSH \u670d\u52a1\u72b6\u6001<\/h2>\n<h3>1. \u4fee\u6539SSH\u8fde\u63a5\u7aef\u53e3<\/h3>\n<p>\u9ed8\u8ba4SSH\u8fde\u63a5\u7aef\u53e3\u662f22&#xff0c;\u8fd9\u5f88\u4e0d\u5b89\u5168&#xff0c;\u6211\u4eec\u53ef\u4ee5\u524d\u9762\u914d\u7f6e\u4fee\u6539\u7aef\u53e3<\/p>\n<p><span class=\"token function\">vim<\/span> \/etc\/ssh\/sshd_config<\/p>\n<p>\u8fd9\u91cc\u6211\u6539\u621016222<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260902044200-6a97a918e979e.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u91cd\u542f SSH \u670d\u52a1\u4f7f\u914d\u7f6e\u751f\u6548<\/p>\n<p>systemctl restart sshd.service<\/p>\n<h3>2. \u68c0\u67e5 SSH \u670d\u52a1\u72b6\u6001\u548c\u662f\u5426\u653e\u884c\u4e86\u65b0\u7aef\u53e3<\/h3>\n<p><span class=\"token comment\"># 1. \u68c0\u67e5 SSH \u670d\u52a1\u72b6\u6001<\/span><br \/>\nsystemctl status sshd<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260902044201-6a97a91913150.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p><span class=\"token comment\"># 2. \u67e5\u770b SSH \u5b9e\u9645\u76d1\u542c\u7684\u7aef\u53e3<\/span><br \/>\n<span class=\"token function\">netstat<\/span> <span class=\"token parameter variable\">-tlnp<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> sshd<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260902044201-6a97a919271c7.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u670d\u52a1\u5668\u5b89\u5168\u7ec4\u6dfb\u52a0\u89c4\u5219&#xff0c;\u653e\u901a16222\u7aef\u53e3 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260902044201-6a97a91930d96.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p><span class=\"token comment\"># 3. \u68c0\u67e5\u9632\u706b\u5899\u662f\u5426\u653e\u884c\u4e86\u65b0\u7aef\u53e3<\/span><br \/>\n<span class=\"token comment\"># CentOS 7 \u7528 firewalld<\/span><br \/>\nfirewall-cmd &#8211;list-all<\/p>\n<p><span class=\"token comment\"># \u6216\u7528 iptables<\/span><br \/>\niptables <span class=\"token parameter variable\">-L<\/span> <span class=\"token parameter variable\">-n<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> <span class=\"token number\">16222<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260902044201-6a97a919a32d2.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p><span class=\"token comment\"># 4. \u5982\u679c\u6ca1\u6709\u653e\u884c&#xff0c;\u6dfb\u52a0\u89c4\u5219<\/span><br \/>\nfirewall-cmd <span class=\"token parameter variable\">&#8211;permanent<\/span> &#8211;add-port<span class=\"token operator\">&#061;<\/span><span class=\"token number\">16222<\/span>\/tcp<br \/>\n<span class=\"token comment\"># \u91cd\u65b0\u52a0\u8f7d\u9632\u706b\u5899<\/span><br \/>\nfirewall-cmd <span class=\"token parameter variable\">&#8211;reload<\/span><\/p>\n<p><span class=\"token comment\"># \u6216\u8005\u7528 iptables<\/span><br \/>\niptables <span class=\"token parameter variable\">-I<\/span> INPUT <span class=\"token parameter variable\">-p<\/span> tcp <span class=\"token parameter variable\">&#8211;dport<\/span> <span class=\"token number\">16222<\/span> <span class=\"token parameter variable\">-j<\/span> ACCEPT<br \/>\n<span class=\"token function\">service<\/span> iptables save<\/p>\n<h2>\u4e94\u3001\u5173\u95ed\u5bc6\u7801\u767b\u5f55<\/h2>\n<p>\u4e3a\u4e86\u5b89\u5168\u6027&#xff0c;\u542f\u7528\u5bc6\u94a5\u767b\u5f55\u4e4b\u540e&#xff0c;\u6700\u597d\u5173\u95ed\u670d\u52a1\u5668\u7684\u5bc6\u7801\u767b\u5f55\u3002<\/p>\n<p>\u5bf9\u4e8e OpenSSH&#xff0c;\u5177\u4f53\u65b9\u6cd5\u5c31\u662f\u6253\u5f00\u670d\u52a1\u5668 sshd \u7684\u914d\u7f6e\u6587\u4ef6\/etc\/ssh\/sshd_config&#xff0c;\u5c06PasswordAuthentication\u8fd9\u4e00\u9879\u8bbe\u4e3ano\u3002<\/p>\n<p><span class=\"token function\">vim<\/span> \/etc\/ssh\/sshd_config<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260902044201-6a97a919ccf6d.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\u4ee5\u540e&#xff0c;\u4e0d\u8981\u5fd8\u4e86\u91cd\u65b0\u542f\u52a8 sshd&#xff0c;\u5426\u5219\u4e0d\u4f1a\u751f\u6548\u3002<\/p>\n<p>systemctl restart sshd.service<\/p>\n<h2>\u516d\u3001\u5176\u4ed6<\/h2>\n<h3>1. \u8fde\u63a5\u62a5\u9519Too many authentication failures<\/h3>\n<p>\u8bf4\u660e\u60a8\u672c\u5730SSH\u5ba2\u6237\u7aef\u5c1d\u8bd5\u4e86\u592a\u591a\u9519\u8bef\u7684\u8ba4\u8bc1\u65b9\u5f0f&#xff0c;\u89e6\u53d1\u4e86\u670d\u52a1\u5668\u7684\u4fdd\u62a4\u673a\u5236\u3002\u89e6\u53d1\u4e86 MaxAuthTries \u9650\u5236&#xff08;\u9ed8\u8ba46\u6b21&#xff09;<\/p>\n<ul>\n<li>\u65b9\u68481&#xff1a;\u7b49\u5f85\u81ea\u52a8\u89e3\u9501&#xff08;\u6700\u7b80\u5355&#xff09; \u7b49\u5f85\u7ea61\u5206\u949f&#xff0c;\u670d\u52a1\u5668\u7684\u8ba4\u8bc1\u5931\u8d25\u8ba1\u6570\u4f1a\u81ea\u52a8\u91cd\u7f6e&#xff0c;\u7136\u540e\u4f7f\u7528\u6b63\u786e\u7684\u65b9\u5f0f\u8fde\u63a5\u3002&#096;<\/li>\n<li>\u65b9\u68482&#xff1a;\u5728\u670d\u52a1\u5668\u7aef\u4e34\u65f6\u589e\u52a0\u6700\u5927\u8ba4\u8bc1\u6b21\u6570&#xff08;\u4e0d\u63a8\u8350\u957f\u671f&#xff09;<\/li>\n<\/ul>\n<p><span class=\"token comment\"># \u7f16\u8f91\u914d\u7f6e<\/span><br \/>\n<span class=\"token function\">vi<\/span> \/etc\/ssh\/sshd_config<\/p>\n<p><span class=\"token comment\"># \u627e\u5230\u6216\u6dfb\u52a0\u8fd9\u4e00\u884c<\/span><br \/>\nMaxAuthTries <span class=\"token number\">10<\/span><\/p>\n<p><span class=\"token comment\"># \u91cd\u542fSSH<\/span><br \/>\nsystemctl restart sshd<\/p>\n<h3>2. \u516c\u94a5\u8fde\u63a5\u670d\u52a1\u5668<\/h3>\n<p>\u6211\u8fd9\u91cc\u4f7f\u7528\u7684\u662fFinalShell\u8fde\u63a5\u6f14\u793a&#xff0c;\u6ce8\u610f\u5982\u679c\u4f60\u7684\u516c\u94a5\u4e0d\u662f\u914d\u7f6e\u5728root\u91cc&#xff0c;\u5219\u7528\u6237\u540d\u6539\u6210\u4f60\u5bf9\u5e94\u7684\u7528\u6237<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260902044201-6a97a919e703a.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>3. \u5982\u679c\u670d\u52a1\u5668\u7684SSH \u5bc6\u7801\u767b\u5f55\u5df2\u7ecf\u88ab\u5173\u4e86&#xff0c;\u8fde\u4e0d\u4e0a\u670d\u52a1\u5668\u6ca1\u529e\u6cd5\u8f93\u5165\u6307\u4ee4\u600e\u4e48\u529e&#xff1f;<\/h3>\n<p>\u53ef\u4ee5\u901a\u8fc7\u63a7\u5236\u53f0vnc\u767b\u5165\u670d\u52a1\u5668&#xff1a;https:\/\/cloud.tencent.com\/document\/product\/213\/35701<\/p>\n<h2>\u53c2\u8003<\/h2>\n<p>https:\/\/juejin.cn\/post\/7564241609501294627 https:\/\/juejin.cn\/post\/6948730395403747342 https:\/\/cloud.tencent.com\/developer\/article\/1780788<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a00<br \/>\n\u5728 Linux \u7cfb\u7edf\u4e2d&#xff0c;SSH \u5bc6\u94a5\u767b\u5f55\u662f\u66ff\u4ee3\u4f20\u7edf\u5bc6\u7801\u767b\u5f55\u7684\u66f4\u5b89\u5168\u65b9\u5f0f&#xff0c;\u80fd\u6709\u6548\u907f\u514d\u5bc6\u7801\u88ab\u66b4\u529b\u7834\u89e3\u7684\u98ce\u9669\u3002&#xff08;\u53ef\u80fd\u7b49\u5230\u54ea\u5929\u4f60\u7684\u670d\u52a1\u5668\u53d7\u5230\u4e0d\u660e\u653b\u51fb\u65f6&#xff0c;\u4f60\u5c31\u4f1a\u660e\u767d\u8fd9\u4e48\u505a\u7684\u91cd\u8981\u6027&#xff09;<br \/>\n\u6ce8\u610f&#xff1a;\u8fd9\u91cc\u63a8\u8350\u6240\u6709\u64cd\u4f5c\u4e0d\u8981\u5728root\u7528\u6237\u4e0b\u8fdb\u884c&#xff0c;\u800c\u662f\u65b0\u589e\u81ea\u5df1\u7684\u4e13\u6709\u7528\u6237&#xff0c;\u5f53\u7136\u4f60\u7528root\u4e5f\u53ef\u4ee5&#xff0c;\u53ea\u662f\u5b89\u5168\u6027\u6ca1\u90a3\u4e48\u9ad8<br \/>\n# \u6dfb\u52a0\u7528\u6237 adduser \u81ea\u5b9a\u4e49\u7528\u6237\u540d<br \/>\nsudo <\/p>\n","protected":false},"author":2,"featured_media":99320,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[77,43,78],"topic":[],"class_list":["post-99327","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-ssh","tag-43","tag-78"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5173\u95edSSH\u5bc6\u7801\u767b\u5f55\uff0cSSH \u5982\u4f55\u4f7f\u7528\u516c\u94a5\u5bc6\u94a5\u767b\u5f55\u670d\u52a1\u5668\uff08\u89e3\u51b3\u670d\u52a1\u5668\u7ecf\u5e38\u88ab\u653b\u51fb\u95ee\u9898\uff09 - \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\/99327.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5173\u95edSSH\u5bc6\u7801\u767b\u5f55\uff0cSSH \u5982\u4f55\u4f7f\u7528\u516c\u94a5\u5bc6\u94a5\u767b\u5f55\u670d\u52a1\u5668\uff08\u89e3\u51b3\u670d\u52a1\u5668\u7ecf\u5e38\u88ab\u653b\u51fb\u95ee\u9898\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u524d\u8a00 \u5728 Linux \u7cfb\u7edf\u4e2d&#xff0c;SSH \u5bc6\u94a5\u767b\u5f55\u662f\u66ff\u4ee3\u4f20\u7edf\u5bc6\u7801\u767b\u5f55\u7684\u66f4\u5b89\u5168\u65b9\u5f0f&#xff0c;\u80fd\u6709\u6548\u907f\u514d\u5bc6\u7801\u88ab\u66b4\u529b\u7834\u89e3\u7684\u98ce\u9669\u3002&#xff08;\u53ef\u80fd\u7b49\u5230\u54ea\u5929\u4f60\u7684\u670d\u52a1\u5668\u53d7\u5230\u4e0d\u660e\u653b\u51fb\u65f6&#xff0c;\u4f60\u5c31\u4f1a\u660e\u767d\u8fd9\u4e48\u505a\u7684\u91cd\u8981\u6027&#xff09; \u6ce8\u610f&#xff1a;\u8fd9\u91cc\u63a8\u8350\u6240\u6709\u64cd\u4f5c\u4e0d\u8981\u5728root\u7528\u6237\u4e0b\u8fdb\u884c&#xff0c;\u800c\u662f\u65b0\u589e\u81ea\u5df1\u7684\u4e13\u6709\u7528\u6237&#xff0c;\u5f53\u7136\u4f60\u7528root\u4e5f\u53ef\u4ee5&#xff0c;\u53ea\u662f\u5b89\u5168\u6027\u6ca1\u90a3\u4e48\u9ad8 # \u6dfb\u52a0\u7528\u6237 adduser \u81ea\u5b9a\u4e49\u7528\u6237\u540d sudo\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/99327.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-02T04:42:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260902044200-6a97a918e979e.png\" \/>\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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/99327.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/99327.html\",\"name\":\"\u5173\u95edSSH\u5bc6\u7801\u767b\u5f55\uff0cSSH \u5982\u4f55\u4f7f\u7528\u516c\u94a5\u5bc6\u94a5\u767b\u5f55\u670d\u52a1\u5668\uff08\u89e3\u51b3\u670d\u52a1\u5668\u7ecf\u5e38\u88ab\u653b\u51fb\u95ee\u9898\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-02T04:42:03+00:00\",\"dateModified\":\"2026-09-02T04:42:03+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/99327.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/99327.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/99327.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5173\u95edSSH\u5bc6\u7801\u767b\u5f55\uff0cSSH \u5982\u4f55\u4f7f\u7528\u516c\u94a5\u5bc6\u94a5\u767b\u5f55\u670d\u52a1\u5668\uff08\u89e3\u51b3\u670d\u52a1\u5668\u7ecf\u5e38\u88ab\u653b\u51fb\u95ee\u9898\uff09\"}]},{\"@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":"\u5173\u95edSSH\u5bc6\u7801\u767b\u5f55\uff0cSSH \u5982\u4f55\u4f7f\u7528\u516c\u94a5\u5bc6\u94a5\u767b\u5f55\u670d\u52a1\u5668\uff08\u89e3\u51b3\u670d\u52a1\u5668\u7ecf\u5e38\u88ab\u653b\u51fb\u95ee\u9898\uff09 - \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\/99327.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5173\u95edSSH\u5bc6\u7801\u767b\u5f55\uff0cSSH \u5982\u4f55\u4f7f\u7528\u516c\u94a5\u5bc6\u94a5\u767b\u5f55\u670d\u52a1\u5668\uff08\u89e3\u51b3\u670d\u52a1\u5668\u7ecf\u5e38\u88ab\u653b\u51fb\u95ee\u9898\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u524d\u8a00 \u5728 Linux \u7cfb\u7edf\u4e2d&#xff0c;SSH \u5bc6\u94a5\u767b\u5f55\u662f\u66ff\u4ee3\u4f20\u7edf\u5bc6\u7801\u767b\u5f55\u7684\u66f4\u5b89\u5168\u65b9\u5f0f&#xff0c;\u80fd\u6709\u6548\u907f\u514d\u5bc6\u7801\u88ab\u66b4\u529b\u7834\u89e3\u7684\u98ce\u9669\u3002&#xff08;\u53ef\u80fd\u7b49\u5230\u54ea\u5929\u4f60\u7684\u670d\u52a1\u5668\u53d7\u5230\u4e0d\u660e\u653b\u51fb\u65f6&#xff0c;\u4f60\u5c31\u4f1a\u660e\u767d\u8fd9\u4e48\u505a\u7684\u91cd\u8981\u6027&#xff09; \u6ce8\u610f&#xff1a;\u8fd9\u91cc\u63a8\u8350\u6240\u6709\u64cd\u4f5c\u4e0d\u8981\u5728root\u7528\u6237\u4e0b\u8fdb\u884c&#xff0c;\u800c\u662f\u65b0\u589e\u81ea\u5df1\u7684\u4e13\u6709\u7528\u6237&#xff0c;\u5f53\u7136\u4f60\u7528root\u4e5f\u53ef\u4ee5&#xff0c;\u53ea\u662f\u5b89\u5168\u6027\u6ca1\u90a3\u4e48\u9ad8 # \u6dfb\u52a0\u7528\u6237 adduser \u81ea\u5b9a\u4e49\u7528\u6237\u540d sudo","og_url":"https:\/\/www.wsisp.com\/helps\/99327.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-02T04:42:03+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260902044200-6a97a918e979e.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/99327.html","url":"https:\/\/www.wsisp.com\/helps\/99327.html","name":"\u5173\u95edSSH\u5bc6\u7801\u767b\u5f55\uff0cSSH \u5982\u4f55\u4f7f\u7528\u516c\u94a5\u5bc6\u94a5\u767b\u5f55\u670d\u52a1\u5668\uff08\u89e3\u51b3\u670d\u52a1\u5668\u7ecf\u5e38\u88ab\u653b\u51fb\u95ee\u9898\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-02T04:42:03+00:00","dateModified":"2026-09-02T04:42:03+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/99327.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/99327.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/99327.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5173\u95edSSH\u5bc6\u7801\u767b\u5f55\uff0cSSH \u5982\u4f55\u4f7f\u7528\u516c\u94a5\u5bc6\u94a5\u767b\u5f55\u670d\u52a1\u5668\uff08\u89e3\u51b3\u670d\u52a1\u5668\u7ecf\u5e38\u88ab\u653b\u51fb\u95ee\u9898\uff09"}]},{"@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\/99327","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=99327"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/99327\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/99320"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=99327"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=99327"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=99327"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=99327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}