{"id":236583,"date":"2022-03-08T10:19:02","date_gmt":"2022-03-08T02:19:02","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=236583"},"modified":"2022-02-24T21:20:05","modified_gmt":"2022-02-24T13:20:05","slug":"ssh-server","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/ssh-server.html","title":{"rendered":"\u4fdd\u62a4 SSH \u7684 3 \u4e2a\u6280\u5de7"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u4ee5\u4e0b\u662f\u6211\u5982\u4f55\u4f18\u5316\u6211\u7684 SSH \u4f53\u9a8c\u5e76\u4fdd\u62a4\u6211\u7684\u670d\u52a1\u5668\u4e0d\u88ab\u975e\u6cd5\u8bbf\u95ee\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

SSH\uff08\u5b89\u5168 Shell\uff09\u662f\u4e00\u4e2a\u534f\u8bae\uff0c\u5b83\u4f7f\u4f60\u80fd\u591f\u521b\u5efa\u4e00\u4e2a\u7ecf\u8fc7\u9a8c\u8bc1\u7684\u79c1\u4eba\u8fde\u63a5\uff0c\u5e76\u4f7f\u7528\u52a0\u5bc6\u5bc6\u94a5\u4fdd\u62a4\u901a\u9053\uff0c\u5728\u53e6\u4e00\u53f0\u673a\u5668\u4e0a\u542f\u52a8\u4e00\u4e2a\u8fdc\u7a0b Shell\u3002\u4f7f\u7528\u8fd9\u79cd\u8fde\u63a5\uff0c\u4f60\u53ef\u4ee5\u6267\u884c\u8fdc\u7a0b\u547d\u4ee4\uff0c\u542f\u52a8\u5b89\u5168\u6587\u4ef6\u4f20\u8f93\uff0c\u8f6c\u53d1\u5957\u63a5\u5b57\u3001\u663e\u793a\u548c\u670d\u52a1\uff0c\u7b49\u7b49\u3002<\/p>\n

\u5728 SSH \u51fa\u73b0\u4e4b\u524d\uff0c\u5927\u591a\u6570\u8fdc\u7a0b\u7ba1\u7406\u662f\u901a\u8fc7 telnet \u5b8c\u6210\u7684\uff0c\u516c\u5e73\u5730\u8bf4\uff0c\u4e00\u65e6\u4f60\u80fd\u5efa\u7acb\u4e00\u4e2a\u8fdc\u7a0b\u4f1a\u8bdd\uff0c\u4f60\u51e0\u4e4e\u53ef\u4ee5\u505a\u4efb\u4f55\u4f60\u9700\u8981\u7684\u4e8b\u60c5\u3002\u8fd9\u4e2a\u534f\u8bae\u7684\u95ee\u9898\u662f\uff0c\u901a\u8baf\u662f\u4ee5\u7eaf\u660e\u6587\u7684\u65b9\u5f0f\u8fdb\u884c\u7684\uff0c\u6ca1\u6709\u7ecf\u8fc7\u52a0\u5bc6\u3002\u4f7f\u7528 \u6d41\u91cf\u55c5\u63a2\u5668 \u4e0d\u9700\u8981\u592a\u591a\u52aa\u529b\u5c31\u53ef\u4ee5\u770b\u5230\u4e00\u4e2a\u4f1a\u8bdd\u4e2d\u7684\u6240\u6709\u6570\u636e\u5305\uff0c\u5305\u62ec\u90a3\u4e9b\u5305\u542b\u7528\u6237\u540d\u548c\u5bc6\u7801\u7684\u6570\u636e\u5305\u3002<\/p>\n

\u6709\u4e86 SSH\uff0c\u7531\u4e8e\u4f7f\u7528\u4e86\u975e\u5bf9\u79f0\u5bc6\u94a5\uff0c\u53c2\u4e0e\u901a\u4fe1\u7684\u8bbe\u5907\u4e4b\u95f4\u7684\u4f1a\u8bdd\u662f\u52a0\u5bc6\u7684\u3002\u5982\u4eca\uff0c\u8fd9\u6bd4\u4ee5\u5f80\u4efb\u4f55\u65f6\u5019\u90fd\u66f4\u6709\u610f\u4e49\uff0c\u56e0\u4e3a\u6240\u6709\u7684\u4e91\u670d\u52a1\u5668\u90fd\u662f\u7531\u5206\u5e03\u5728\u4e16\u754c\u5404\u5730\u7684\u4eba\u7ba1\u7406\u7684\u3002<\/p>\n

3 \u4e2a\u914d\u7f6e SSH \u7684\u6280\u5de7<\/strong><\/div>\n

SSH \u534f\u8bae\u6700\u5e38\u89c1\u7684\u5b9e\u73b0\u662f OpenSSH\uff0c\u5b83\u7531 OpenBSD \u9879\u76ee\u5f00\u53d1\uff0c\u53ef\u7528\u4e8e\u5927\u591a\u6570 Linux \u548c\u7c7b Unix \u64cd\u4f5c\u7cfb\u7edf\u3002\u4e00\u65e6\u4f60\u5b89\u88c5\u4e86\u8fd9\u4e2a\u8f6f\u4ef6\u5305\uff0c\u4f60\u5c31\u4f1a\u6709\u4e00\u4e2a\u540d\u4e3a sshd_config<\/span> \u7684\u6587\u4ef6\u6765\u63a7\u5236\u8be5\u670d\u52a1\u7684\u5927\u90e8\u5206\u884c\u4e3a\u3002\u5176\u9ed8\u8ba4\u8bbe\u7f6e\u901a\u5e38\u662f\u975e\u5e38\u4fdd\u5b88\u7684\uff0c\u4f46\u6211\u503e\u5411\u4e8e\u505a\u4e00\u4e9b\u8c03\u6574\uff0c\u4ee5\u4f18\u5316\u6211\u7684 SSH \u4f53\u9a8c\uff0c\u5e76\u4fdd\u62a4\u6211\u7684\u670d\u52a1\u5668\u4e0d\u88ab\u975e\u6cd5\u8bbf\u95ee\u3002<\/p>\n

1\u3001\u6539\u53d8\u9ed8\u8ba4\u7aef\u53e3<\/strong><\/span><\/div>\n

\u8fd9\u662f\u4e00\u4e2a\u5e76\u975e\u6240\u6709\u7ba1\u7406\u5458\u90fd\u8bb0\u5f97\u7684\u95ee\u9898\u3002\u4efb\u4f55\u6709\u7aef\u53e3\u626b\u63cf\u5668\u7684\u4eba\u90fd\u53ef\u4ee5\u53d1\u73b0\u4e00\u4e2a SSH \u7aef\u53e3\uff0c\u5373\u4f7f\u4f60\u4e4b\u540e\u628a\u5b83\u79fb\u5230\u522b\u7684\u7aef\u53e3\uff0c\u6240\u4ee5\u4f60\u5f88\u96be\u628a\u81ea\u5df1\u4ece\u5371\u9669\u4e2d\u79fb\u9664\uff0c\u4f46\u8fd9\u6837\u5374\u4f1a\u6709\u6548\u7684\u907f\u514d\u4e86\u6570\u767e\u4e2a\u9488\u5bf9\u4f60\u7684\u670d\u52a1\u5668\u626b\u63cf\u7684\u4e0d\u6210\u719f\u811a\u672c\u3002\u8fd9\u662f\u4e00\u4e2a\u53ef\u4ee5\u8ba9\u4f60\u7701\u5fc3\uff0c\u4ece\u4f60\u7684\u65e5\u5fd7\u4e2d\u51cf\u53bb\u5927\u91cf\u7684\u566a\u97f3\u7684\u64cd\u4f5c\u3002<\/p>\n

\u5728\u5199\u8fd9\u7bc7\u6587\u7ae0\u65f6\uff0c\u6211\u5728\u4e00\u4e2a\u4e91\u670d\u52a1\u63d0\u4f9b\u5546\u4e0a\u8bbe\u7f6e\u4e86\u4e00\u4e2a SSH \u670d\u52a1\u5668\uff0c\u9ed8\u8ba4\u7aef\u53e3 TCP 22\uff0c\u6bcf\u5206\u949f\u5e73\u5747\u88ab\u653b\u51fb\u6b21\u6570\u4e3a 24 \u6b21\u3002\u5728\u5c06\u7aef\u53e3\u6539\u4e3a\u4e00\u4e2a\u66f4\u9ad8\u7684\u6570\u5b57\uff0c\u5373 TCP 45678 \u540e\uff0c\u5e73\u5747\u6bcf\u5929\u6709\u4e24\u4e2a\u8fde\u63a5\u5e76\u7528\u5404\u79cd\u7528\u6237\u540d\u6216\u5bc6\u7801\u8fdb\u884c\u731c\u6d4b\u3002<\/p>\n

\u8981\u6539\u53d8 SSH \u7684\u9ed8\u8ba4\u7aef\u53e3\uff0c\u5728\u4f60\u559c\u6b22\u7684\u6587\u672c\u7f16\u8f91\u5668\u4e2d\u6253\u5f00 \/etc\/ssh\/sshd_config<\/span>\uff0c\u5c06 Port<\/span> \u7684\u503c\u4ece 22 \u6539\u4e3a\u5927\u4e8e 1024 \u7684\u67d0\u4e2a\u6570\u5b57\u3002\u8fd9\u4e00\u884c\u53ef\u80fd\u88ab\u6ce8\u91ca\u4e86\uff0c\u56e0\u4e3a 22 \u662f\u9ed8\u8ba4\u7684\uff08\u6240\u4ee5\u4e0d\u9700\u8981\u5728\u914d\u7f6e\u4e2d\u660e\u786e\u58f0\u660e\uff09\uff0c\u6240\u4ee5\u5728\u4fdd\u5b58\u4e4b\u524d\u53d6\u6d88\u6ce8\u91ca\u3002<\/p>\n

Port 22122\r\n#AddressFamily any \r\n#ListenAddress 0.0.0.0 \r\n#ListenAddress ::\r\n<\/pre>\n

\u4e00\u65e6\u4f60\u6539\u53d8\u4e86\u7aef\u53e3\u5e76\u4fdd\u5b58\u4e86\u6587\u4ef6\uff0c\u91cd\u65b0\u542f\u52a8 SSH \u670d\u52a1\u5668\uff1a<\/p>\n

$ sudo systemctl restart sshd\r\n<\/pre>\n
2\u3001\u4e0d\u8981\u4f7f\u7528\u5bc6\u7801<\/strong><\/span><\/div>\n

\u73b0\u5728\u6709\u4e00\u4e2a\u666e\u904d\u7684\u6f6e\u6d41\u662f\u505c\u6b62\u4f7f\u7528\u5bc6\u7801\u4f5c\u4e3a\u8ba4\u8bc1\u624b\u6bb5\uff0c\u53cc\u56e0\u7d20\u8ba4\u8bc1\u7b49\u65b9\u6cd5\u8d8a\u6765\u8d8a\u53d7\u6b22\u8fce\u3002OpenSSH \u53ef\u4ee5\u4f7f\u7528\u975e\u5bf9\u79f0\u5bc6\u94a5\u8fdb\u884c\u8ba4\u8bc1\uff0c\u56e0\u6b64\u4e0d\u9700\u8981\u8bb0\u4f4f\u590d\u6742\u7684\u5bc6\u7801\uff0c\u66f4\u4e0d\u9700\u8981\u6bcf\u9694\u51e0\u4e2a\u6708\u8f6e\u6362\u4e00\u6b21\u5bc6\u7801\uff0c\u4e5f\u4e0d\u9700\u8981\u62c5\u5fc3\u6709\u4eba\u5728\u4f60\u5efa\u7acb\u8fdc\u7a0b\u4f1a\u8bdd\u65f6\u8fdb\u884c\u201c\u80a9\u540e\u5077\u7aa5\u201d\u3002\u4f7f\u7528 SSH \u5bc6\u94a5\u53ef\u4ee5\u8ba9\u4f60\u5feb\u901f\u3001\u5b89\u5168\u5730\u767b\u5f55\u5230\u4f60\u7684\u8fdc\u7a0b\u8bbe\u5907\u4e0a\u3002\u8fd9\u5f80\u5f80\u610f\u5473\u7740\u82b1\u8d39\u5728\u9519\u8bef\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801\u4e0a\u7684\u65f6\u95f4\u66f4\u5c11\u3002\u767b\u5f55\u4ee4\u4eba\u6109\u5feb\u7684\u7b80\u5355\u3002\u5f53\u6ca1\u6709\u5bc6\u94a5\u65f6\uff0c\u5c31\u6ca1\u6709\u5165\u53e3\uff0c\u751a\u81f3\u6ca1\u6709\u63d0\u793a\u7b26\u3002<\/p>\n

\u8981\u4f7f\u7528\u8fd9\u4e2a\u529f\u80fd\uff0c\u4f60\u5fc5\u987b\u540c\u65f6\u914d\u7f6e\u5ba2\u6237\u673a\uff08\u5728\u4f60\u9762\u524d\u7684\u8ba1\u7b97\u673a\uff09\u548c\u670d\u52a1\u5668\uff08\u8fdc\u7a0b\u673a\u5668\uff09\u3002<\/p>\n

\u5728\u5ba2\u6237\u7aef\u673a\u5668\u4e0a\uff0c\u4f60\u5fc5\u987b\u751f\u6210\u4e00\u4e2a SSH \u5bc6\u94a5\u5bf9\u3002\u8fd9\u5305\u62ec\u4e00\u4e2a\u516c\u94a5\u548c\u4e00\u4e2a\u79c1\u94a5\u3002\u6b63\u5982\u5b83\u4eec\u7684\u540d\u5b57\u6240\u6697\u793a\u7684\uff0c\u4e00\u4e2a\u516c\u5f00\u7684\u5bc6\u94a5\u662f\u4f9b\u4f60\u5206\u53d1\u7ed9\u4f60\u60f3\u767b\u5f55\u7684\u670d\u52a1\u5668\u7684\uff0c\u53e6\u4e00\u4e2a\u662f\u79c1\u4eba\u7684\u5bc6\u94a5\uff0c\u5fc5\u987b\u4e0d\u4e0e\u4efb\u4f55\u4eba\u5206\u4eab\u3002\u4f7f\u7528 ssh-keygen<\/span> \u547d\u4ee4\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5bc6\u94a5\u5bf9\uff0c\u5e76\u4f7f\u7528 -t<\/span> \u9009\u9879\u6765\u6307\u5b9a\u4e00\u4e2a\u597d\u7684\u3001\u6700\u65b0\u7684\u5bc6\u7801\u5b66\u5e93\uff0c\u5982 ed25519<\/span>\uff1a<\/p>\n

$ ssh-keygen -t ed25519    \r\n Generating public\/private ed25519 key pair. \r\n Enter file in which to save the key (~\/.ssh\/id_ed25519):\r\n<\/pre>\n

\u5728\u5bc6\u94a5\u521b\u5efa\u8fc7\u7a0b\u4e2d\uff0c\u4f60\u4f1a\u88ab\u63d0\u793a\u4e3a\u6587\u4ef6\u547d\u540d\u3002\u4f60\u53ef\u4ee5\u6309\u56de\u8f66\u952e\u6765\u63a5\u53d7\u9ed8\u8ba4\u503c\u3002\u5982\u679c\u4f60\u5c06\u6765\u521b\u5efa\u4e86\u66f4\u591a\u7684\u5bc6\u94a5\uff0c\u4f60\u53ef\u4ee5\u7ed9\u6bcf\u4e2a\u5bc6\u94a5\u8d77\u4e00\u4e2a\u81ea\u5b9a\u4e49\u7684\u540d\u5b57\uff0c\u4f46\u6709\u591a\u4e2a\u5bc6\u94a5\u610f\u5473\u7740\u4f60\u8981\u4e3a\u6bcf\u6b21\u4ea4\u4e92\u6307\u5b9a\u4f7f\u7528\u54ea\u4e2a\u5bc6\u94a5\uff0c\u6240\u4ee5\u73b0\u5728\u53ea\u8981\u63a5\u53d7\u9ed8\u8ba4\u5373\u53ef\u3002<\/p>\n

\u4f60\u8fd8\u53ef\u4ee5\u7ed9\u4f60\u7684\u5bc6\u94a5\u4e00\u4e2a\u53e3\u4ee4\u3002\u8fd9\u53ef\u4ee5\u786e\u4fdd\u5373\u4f7f\u522b\u4eba\u8bbe\u6cd5\u83b7\u5f97\u4f60\u7684\u79c1\u94a5\uff08\u8fd9\u672c\u8eab\u5c31\u4e0d\u5e94\u8be5\u53d1\u751f\uff09\uff0c\u6ca1\u6709\u4f60\u7684\u53e3\u4ee4\uff0c\u4ed6\u4eec\u4e5f\u65e0\u6cd5\u5c06\u5176\u6295\u5165\u4f7f\u7528\u3002\u8fd9\u5bf9\u67d0\u4e9b\u5bc6\u94a5\u6765\u8bf4\u662f\u4e00\u79cd\u6709\u7528\u7684\u4fdd\u62a4\u63aa\u65bd\uff0c\u800c\u5bf9\u5176\u4ed6\u5bc6\u94a5\u6765\u8bf4\u5219\u4e0d\u5408\u9002\uff08\u7279\u522b\u662f\u90a3\u4e9b\u7528\u4e8e\u811a\u672c\u7684\u5bc6\u94a5\uff09\u3002\u6309\u56de\u8f66\u952e\u8ba9\u4f60\u7684\u5bc6\u94a5\u6ca1\u6709\u53e3\u4ee4\uff0c\u6216\u8005\u4f60\u9009\u62e9\u521b\u5efa\u4e00\u4e2a\u53e3\u4ee4\u3002<\/p>\n

\u8981\u628a\u4f60\u7684\u5bc6\u94a5\u590d\u5236\u5230\u670d\u52a1\u5668\u4e0a\uff0c\u4f7f\u7528 ssh-copy-id<\/span> \u547d\u4ee4\u3002\u4f8b\u5982\uff0c\u5982\u679c\u6211\u62e5\u6709\u4e00\u53f0\u540d\u4e3a example.com<\/span> \u7684\u670d\u52a1\u5668\uff0c\u90a3\u4e48\u6211\u53ef\u4ee5\u7528\u8fd9\u4e2a\u547d\u4ee4\u628a\u6211\u7684\u516c\u94a5\u590d\u5236\u5230\u5b83\u4e0a\u9762\uff1a<\/p>\n

$ ssh-copy-id jgarrido@example.com\r\n<\/pre>\n

\u8fd9\u5c06\u5728\u670d\u52a1\u5668\u7684 .ssh<\/span> \u76ee\u5f55\u4e0b\u521b\u5efa\u6216\u4fee\u6539 authorized_keys<\/span> \u6587\u4ef6\uff0c\u5176\u4e2d\u5305\u542b\u4f60\u7684\u516c\u94a5\u3002<\/p>\n

\u4e00\u65e6\u786e\u8ba4 ssh-copy-id <\/span>\u547d\u4ee4\u5b8c\u6210\u4e86\u5b83\u6240\u505a\u7684\u4e8b\u60c5\uff0c\u5c1d\u8bd5\u4ece\u4f60\u7684\u7535\u8111\u4e0a\u767b\u5f55\uff0c\u4ee5\u9a8c\u8bc1\u4f60\u53ef\u4ee5\u5728\u6ca1\u6709\u5bc6\u7801\u7684\u60c5\u51b5\u4e0b\u767b\u5f55\uff08\u6216\u8005\u5982\u679c\u4f60\u9009\u62e9\u4f7f\u7528\u4f60\u7684\u5bc6\u94a5\u7684\u53e3\u4ee4\uff0c\u5c31\u8f93\u5165\u5bc6\u94a5\u53e3\u4ee4\uff09\u3002<\/p>\n

\u5728\u6ca1\u6709\u4f7f\u7528\u4f60\u7684\u670d\u52a1\u5668\u5e10\u6237\u7684\u5bc6\u7801\u767b\u5f55\u5230\u4f60\u7684\u670d\u52a1\u5668\u4e0a\u540e\uff0c\u7f16\u8f91\u670d\u52a1\u5668\u7684 sshd_config<\/span> \u5e76\u5c06 PasswordAuthentication<\/span> \u8bbe\u7f6e\u4e3a no<\/span>\u3002<\/p>\n

PasswordAuthentication no\r\n<\/pre>\n

\u91cd\u65b0\u542f\u52a8 SSH \u670d\u52a1\u4ee5\u52a0\u8f7d\u65b0\u7684\u914d\u7f6e\uff1a<\/p>\n

$ sudo systemctl restart sshd<\/p>\n

3\u3001\u51b3\u5b9a\u8c01\u53ef\u4ee5\u767b\u5f55<\/strong><\/span><\/div>\n

\u5927\u591a\u6570\u53d1\u884c\u7248\u4e0d\u5141\u8bb8 root \u7528\u6237\u901a\u8fc7 SSH \u767b\u5f55\uff0c\u8fd9\u786e\u4fdd\u53ea\u6709\u975e\u7279\u6743\u8d26\u6237\u662f\u6d3b\u8dc3\u7684\uff0c\u6839\u636e\u9700\u8981\u4f7f\u7528 sudo <\/span>\u547d\u4ee4\u6765\u63d0\u5347\u6743\u9650\u3002\u8fd9\u5c31\u9632\u6b62\u4e86\u4e00\u4e2a\u660e\u663e\u7684\u3001\u4ee4\u4eba\u75db\u82e6\u7684\u76ee\u6807\uff08root\uff09\u53d7\u5230\u7b80\u5355\u800c\u5e38\u89c1\u7684\u811a\u672c\u653b\u51fb\u3002<\/p>\n

\u540c\u6837\uff0cOpenSSH \u7684\u4e00\u4e2a\u7b80\u5355\u800c\u5f3a\u5927\u7684\u529f\u80fd\u662f\u80fd\u591f\u51b3\u5b9a\u54ea\u4e9b\u7528\u6237\u53ef\u4ee5\u767b\u5f55\u5230\u4e00\u53f0\u673a\u5668\u3002\u8981\u8bbe\u7f6e\u54ea\u4e9b\u7528\u6237\u88ab\u6388\u4e88 SSH \u8bbf\u95ee\u6743\uff0c\u5728\u4f60\u6700\u559c\u6b22\u7684\u6587\u672c\u7f16\u8f91\u5668\u4e2d\u6253\u5f00 sshd_config<\/span> \u6587\u4ef6\uff0c\u5e76\u6dfb\u52a0\u8fd9\u6837\u4e00\u884c\uff1a<\/p>\n

AllowUsers jgarrido jane tux\r\n<\/pre>\n

\u91cd\u65b0\u542f\u52a8 SSH \u670d\u52a1\u4ee5\u52a0\u8f7d\u65b0\u7684\u914d\u7f6e\u9009\u9879\u3002<\/p>\n

\u8fd9\u53ea\u5141\u8bb8\u4e09\u4e2a\u7528\u6237\uff08jgarrido<\/span>\u3001jane<\/span> \u548c tux<\/span>\uff09\u767b\u5f55\u6216\u5728\u8fdc\u7a0b\u673a\u5668\u4e0a\u6267\u884c\u4efb\u4f55\u64cd\u4f5c\u3002<\/p>\n

\u603b\u7ed3<\/strong><\/div>\n

\u4f60\u53ef\u4ee5\u4f7f\u7528 OpenSSH \u6765\u5b9e\u73b0\u4e00\u4e2a\u5f3a\u5927\u800c\u7a33\u5065\u7684 SSH \u670d\u52a1\u5668\u3002\u8fd9\u4e9b\u53ea\u662f\u52a0\u56fa\u4f60\u7684\u7cfb\u7edf\u7684\u4e09\u4e2a\u6709\u7528\u7684\u9009\u9879\u3002\u5c3d\u7ba1\u5982\u6b64\uff0c\u5728 sshd_config<\/span> \u6587\u4ef6\u4e2d\u4ecd\u6709\u5927\u91cf\u7684\u529f\u80fd\u548c\u9009\u9879\u53ef\u4ee5\u6253\u5f00\u6216\u5173\u95ed\uff0c\u800c\u4e14\u6709\u8bb8\u591a\u5f88\u68d2\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u5982 Fail2ban<\/span>\uff0c\u4f60\u53ef\u4ee5\u7528\u6765\u8fdb\u4e00\u6b65\u4fdd\u62a4\u4f60\u7684 SSH \u670d\u52a1\u3002<\/p>\n


\n

via:\u00a0https:\/\/opensource.com\/article\/22\/2\/configure-ssh-privacy<\/a><\/p>\n

\u4f5c\u8005\uff1aJonathan Garrido<\/a>\u00a0\u9009\u9898\uff1alujun9972<\/a>\u00a0\u8bd1\u8005\uff1awxy<\/a>\u00a0\u6821\u5bf9\uff1awxy<\/a><\/p>\n

\u672c\u6587\u7531\u00a0LCTT<\/a>\u00a0\u539f\u521b\u7f16\u8bd1\uff0cLinux\u4e2d\u56fd<\/a>\u00a0\u8363\u8a89\u63a8\u51fa<\/p>\n","protected":false},"excerpt":{"rendered":"

SSH\uff08\u5b89\u5168 Shell\uff09\u662f\u4e00\u4e2a\u534f\u8bae\uff0c\u5b83\u4f7f\u4f60\u80fd\u591f\u521b\u5efa\u4e00\u4e2a\u7ecf\u8fc7\u9a8c\u8bc1\u7684\u79c1\u4eba\u8fde\u63a5\uff0c\u5e76\u4f7f\u7528\u52a0\u5bc6\u5bc6\u94a5\u4fdd\u62a4\u901a\u9053\uff0c\u5728\u53e6\u4e00\u53f0\u673a […]<\/p>\n","protected":false},"author":1890,"featured_media":236584,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-236583","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/236583","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1890"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=236583"}],"version-history":[{"count":1,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/236583\/revisions"}],"predecessor-version":[{"id":236585,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/236583\/revisions\/236585"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/236584"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=236583"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=236583"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=236583"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}