{"id":31472,"date":"2025-04-21T14:16:10","date_gmt":"2025-04-21T06:16:10","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/31472.html"},"modified":"2025-04-21T14:16:10","modified_gmt":"2025-04-21T06:16:10","slug":"phpstorm%e9%85%8d%e7%bd%aessh%e5%af%86%e9%92%a5%e5%af%b9%e8%bf%9c%e7%a8%8b%e8%bf%9e%e6%8e%a5%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%90%8c%e6%ad%a5%e4%bb%a3%e7%a0%81%e6%95%99%e7%a8%8b%ef%bc%8c%e6%96%b9%e4%be%bf","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/31472.html","title":{"rendered":"PHPStorm\u914d\u7f6eSSH\u5bc6\u94a5\u5bf9\u8fdc\u7a0b\u8fde\u63a5\u670d\u52a1\u5668\u540c\u6b65\u4ee3\u7801\u6559\u7a0b\uff0c\u65b9\u4fbf\u8fdc\u7a0b\u7f16\u8f91\u670d\u52a1\u5668\u9879\u76ee"},"content":{"rendered":"<h2><\/h2>\n<p>\u5728\u4f7f\u7528 PHPStorm \u8fdb\u884c\u8fdc\u7a0b\u5f00\u53d1\u65f6&#xff0c;\u901a\u8fc7 SSH \u5bc6\u94a5\u5bf9\u7684\u65b9\u5f0f\u53ef\u4ee5\u5b9e\u73b0\u66f4\u52a0\u5b89\u5168\u7684\u8fde\u63a5&#xff0c;\u907f\u514d\u56e0\u670d\u52a1\u5668IP\u9650\u5236&#xff0c;\u672c\u5730IP\u53d1\u751f\u53d8\u5316&#xff0c;\u5bfc\u81f4\u9891\u7e41\u7684\u914d\u7f6eIP\u3002\u6211\u5c06\u4ece\u751f\u6210\u5bc6\u94a5\u5bf9\u5230\u5728 PHPStorm \u4e2d\u914d\u7f6e\u7684\u5b8c\u6574\u6d41\u7a0b\u3002<\/p>\n<hr \/>\n<h3>1. \u80cc\u666f\u4e0e\u9700\u6c42\u5206\u6790<\/h3>\n<p>PHPStorm \u63d0\u4f9b\u4e86\u5bf9\u8fdc\u7a0b\u670d\u52a1\u5668\u7684\u4fbf\u6377\u652f\u6301&#xff0c;\u800c SSH \u5bc6\u94a5\u5bf9&#xff08;Public Key Authentication&#xff09;\u662f\u4e00\u79cd\u66f4\u52a0\u5b89\u5168\u9ad8\u6548\u7684\u8eab\u4efd\u9a8c\u8bc1\u65b9\u5f0f\u3002<\/p>\n<p>\u514d\u53bb\u4e86\u914d\u7f6e\u8d26\u53f7\u5bc6\u7801\u7684\u70e6\u607c\u3002<\/p>\n<p>\u901a\u8fc7\u914d\u7f6e\u5bc6\u94a5\u5bf9&#xff0c;\u6211\u4eec\u53ef\u4ee5\u5b9e\u73b0&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u65e0\u5bc6\u7801\u767b\u5f55&#xff1a;\u63d0\u9ad8\u5f00\u53d1\u6548\u7387&#xff0c;\u907f\u514d\u91cd\u590d\u8f93\u5165\u5bc6\u7801\u3002<\/p>\n<\/li>\n<li>\n<p>\u589e\u5f3a\u5b89\u5168\u6027&#xff1a;\u76f8\u6bd4\u4f20\u7edf\u7684\u5bc6\u7801\u767b\u5f55&#xff0c;\u5bc6\u94a5\u5bf9\u4e0d\u5bb9\u6613\u88ab\u66b4\u529b\u7834\u89e3\u3002<\/p>\n<\/li>\n<li>\n<p>IP\u66f4\u6362\u70e6\u607c&#xff1a;\u6709\u7684\u670d\u52a1\u5668\u4e3a\u4e86\u5b89\u5168&#xff0c;\u53ea\u6709\u9650\u5b9a\u7684IP\u53ef\u4ee5\u8bbf\u95ee&#xff0c;\u8fd9\u6837\u53ef\u4ee5\u89e3\u51b3IP\u9891\u7e41\u66f4\u6362\u7684\u95ee\u9898\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u4e0b\u9762\u6211\u4eec\u5c06\u5206\u6b65\u9aa4\u5b8c\u6210\u4ee5\u4e0b\u5185\u5bb9&#xff1a;<\/p>\n<li>\n<p>\u5728\u670d\u52a1\u5668\u4e0a\u751f\u6210\u5bc6\u94a5\u5bf9\u3002<\/p>\n<\/li>\n<li>\n<p>\u5c06\u5bc6\u94a5\u914d\u7f6e\u5230\u672c\u5730\u73af\u5883\u3002<\/p>\n<\/li>\n<li>\n<p>\u5728 PHPStorm \u4e2d\u5b8c\u6210\u914d\u7f6e\u5e76\u6d4b\u8bd5\u8fde\u63a5\u3002<\/p>\n<\/li>\n<li>\n<p>\u5728 PHPStorm\u540c\u6b65\u4ee3\u7801\u914d\u7f6e\u3002<\/p>\n<\/li>\n<h3>2. \u9996\u5148\u7406\u89e3\u4e0bSSH\u5bc6\u94a5\u5bf9<\/h3>\n<h4>\u4ec0\u4e48\u662f SSH \u5bc6\u94a5\u5bf9&#xff1f;<\/h4>\n<p>SSH \u5bc6\u94a5\u5bf9\u5c31\u50cf\u4e00\u5bf9\u201c\u9501\u201d\u548c\u201c\u94a5\u5319\u201d&#xff0c;\u7528\u6765\u4fdd\u8bc1\u4f60\u7684\u7535\u8111\u548c\u670d\u52a1\u5668\u4e4b\u95f4\u7684\u901a\u4fe1\u662f\u5b89\u5168\u7684\u3002\u5b83\u6709\u4e24\u90e8\u5206&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u516c\u94a5&#xff08;Public Key&#xff09;&#xff1a;\u76f8\u5f53\u4e8e\u4e00\u628a\u201c\u9501\u201d&#xff0c;\u53ef\u4ee5\u516c\u5f00\u653e\u5728\u670d\u52a1\u5668\u4e0a&#xff0c;\u4efb\u4f55\u4eba\u90fd\u80fd\u770b\u5230\u3002<\/p>\n<\/li>\n<li>\n<p>\u79c1\u94a5&#xff08;Private Key&#xff09;&#xff1a;\u76f8\u5f53\u4e8e\u4e00\u628a\u201c\u94a5\u5319\u201d&#xff0c;\u53ea\u80fd\u4f60\u81ea\u5df1\u4fdd\u7ba1&#xff0c;\u4e0d\u80fd\u7ed9\u522b\u4eba\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u670d\u52a1\u5668\u901a\u8fc7\u201c\u516c\u94a5\u201d\u6765\u68c0\u67e5\u4f60\u7684\u201c\u94a5\u5319\u201d\u662f\u4e0d\u662f\u5339\u914d\u3002\u5982\u679c\u5339\u914d&#xff0c;\u5c31\u8ba9\u4f60\u8fdb\u53bb&#xff1b;\u5982\u679c\u4e0d\u5339\u914d&#xff0c;\u5c31\u62d2\u7edd\u8bbf\u95ee\u3002<\/p>\n<hr \/>\n<h4>\u7528\u751f\u6d3b\u4f8b\u5b50\u6765\u89e3\u91ca<\/h4>\n<li>\n<p>\u5b89\u88c5\u9501&#xff1a; \u4f60\u628a\u201c\u516c\u94a5\u201d\u8fd9\u628a\u9501\u88c5\u5230\u670d\u52a1\u5668\u7684\u95e8\u4e0a&#xff0c;\u5c31\u50cf\u4f60\u628a\u5bb6\u91cc\u7684\u95e8\u6362\u6210\u4e86\u53ea\u6709\u4f60\u6709\u94a5\u5319\u80fd\u6253\u5f00\u7684\u9501\u3002<\/p>\n<\/li>\n<li>\n<p>\u94a5\u5319\u53ea\u6709\u4f60\u6709&#xff1a; \u79c1\u94a5\u662f\u4f60\u72ec\u6709\u7684\u94a5\u5319&#xff0c;\u522b\u4eba\u6ca1\u6709&#xff0c;\u5c31\u7b97\u770b\u5230\u9501\u4e5f\u6253\u4e0d\u5f00\u3002<\/p>\n<\/li>\n<li>\n<p>\u5f00\u95e8\u9a8c\u8bc1&#xff1a; \u6bcf\u6b21\u8fde\u63a5\u670d\u52a1\u5668&#xff0c;\u5c31\u50cf\u4f60\u7528\u94a5\u5319\u5f00\u95e8\u3002\u670d\u52a1\u5668\u4f1a\u68c0\u67e5\u4f60\u7684\u94a5\u5319\u662f\u5426\u80fd\u6253\u5f00\u5b83\u7684\u9501\u3002\u5982\u679c\u80fd\u6253\u5f00&#xff0c;\u8bf4\u660e\u662f\u4f60\u672c\u4eba&#xff0c;\u5c31\u5141\u8bb8\u4f60\u8fdb\u5165\u3002<\/p>\n<\/li>\n<hr \/>\n<h4>\u4e3a\u4ec0\u4e48\u8981\u7528\u5bc6\u94a5\u5bf9&#xff1f;<\/h4>\n<p>\u666e\u901a\u7684\u767b\u5f55\u65b9\u5f0f\u9700\u8981\u8f93\u5165\u5bc6\u7801&#xff0c;\u4f46\u5bc6\u7801\u53ef\u80fd\u4f1a\u88ab\u5077\u770b\u6216\u731c\u5230\u3002\u800c\u5bc6\u94a5\u5bf9\u7684\u201c\u94a5\u5319\u201d\u975e\u5e38\u590d\u6742&#xff0c;\u51e0\u4e4e\u4e0d\u53ef\u80fd\u88ab\u7834\u89e3&#xff0c;\u6240\u4ee5\u66f4\u5b89\u5168&#xff01;<\/p>\n<hr \/>\n<h4>\u56fe\u89e3 SSH \u5bc6\u94a5\u5bf9&#xff08;\u7b80\u5355\u53ef\u89c6\u5316&#xff09;<\/h4>\n<h5>\u5bc6\u94a5\u5bf9\u7684\u5de5\u4f5c\u539f\u7406<\/h5>\n<p>\u4f60\u7684\u7535\u8111 (\u79c1\u94a5) &#8212;&#8212;&#8212;&#8212;&#8212;\u300b\u300b\u300b\u5339\u914d\u6210\u529f&#xff01;&#8212;&#8212;&#8212;&#8212;-\u2192 \u670d\u52a1\u5668 (\u516c\u94a5)<\/p>\n<p>\u573a\u666f&#xff1a;<\/p>\n<li>\n<p>\u4f60\u5bb6\u6709\u4e00\u4e2a\u95e8&#xff08;\u670d\u52a1\u5668&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u4f60\u88c5\u4e86\u4e00\u628a\u201c\u667a\u80fd\u9501\u201d&#xff08;\u516c\u94a5&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u4f60\u62ff\u7740\u4e00\u628a\u201c\u552f\u4e00\u7684\u94a5\u5319\u201d&#xff08;\u79c1\u94a5&#xff09;\u3002<\/p>\n<\/li>\n<ul>\n<li>\n<p>\u516c\u94a5\u5b89\u88c5\u5728\u670d\u52a1\u5668\u4e0a&#xff0c;\u4fdd\u8bc1\u53ea\u6709\u6b63\u786e\u7684\u94a5\u5319\u624d\u80fd\u5f00\u95e8\u3002<\/p>\n<\/li>\n<li>\n<p>\u79c1\u94a5\u4fdd\u5b58\u5728\u7535\u8111\u4e0a&#xff0c;\u7528\u4e8e\u6253\u5f00\u8fd9\u628a\u9501\u3002<\/p>\n<\/li>\n<\/ul>\n<hr \/>\n<h4>\u5982\u4f55\u4f7f\u7528\u5bc6\u94a5\u5bf9&#xff1f;<\/h4>\n<li>\n<p>\u751f\u6210\u5bc6\u94a5\u5bf9&#xff1a; \u4f60\u7528\u7535\u8111\u751f\u6210\u4e00\u5bf9\u9501\u548c\u94a5\u5319&#xff08;\u516c\u94a5\u548c\u79c1\u94a5&#xff09;\u3002<\/p>\n<p> ssh-keygen\u00a0-t\u00a0rsa\n <\/li>\n<li>\n<p>\u5b89\u88c5\u9501&#xff1a; \u628a\u516c\u94a5&#xff08;\u9501&#xff09;\u653e\u5230\u670d\u52a1\u5668\u4e0a\u3002<\/p>\n<p> cat\u00a0~\/.ssh\/id_rsa.pub\u00a0&gt;&gt;\u00a0~\/.ssh\/authorized_keys\n <\/li>\n<li>\n<p>\u7528\u94a5\u5319\u5f00\u95e8&#xff1a; \u4e0b\u6b21\u767b\u5f55\u65f6&#xff0c;\u53ea\u9700\u8981\u4f60\u7684\u79c1\u94a5&#xff0c;\u670d\u52a1\u5668\u4f1a\u81ea\u52a8\u9a8c\u8bc1\u4f60\u662f\u5426\u6709\u6743\u9650\u3002<\/p>\n<\/li>\n<hr \/>\n<h4>\u95ee\u9898\u56de\u7b54&#xff1a;<\/h4>\n<p>\u95ee&#xff1a;\u5982\u679c\u522b\u4eba\u5077\u8d70\u4e86\u6211\u7684\u94a5\u5319\u600e\u4e48\u529e&#xff1f; \u7b54&#xff1a;\u5982\u679c\u6709\u4eba\u5077\u4e86\u4f60\u7684\u79c1\u94a5&#xff08;\u94a5\u5319&#xff09;&#xff0c;\u4ed6\u5c31\u80fd\u6253\u5f00\u4f60\u7684\u9501&#xff0c;\u6240\u4ee5\u79c1\u94a5\u4e00\u5b9a\u8981\u59a5\u5584\u4fdd\u7ba1&#xff0c;\u4e0d\u8981\u8ba9\u522b\u4eba\u770b\u5230\u3002<\/p>\n<p>\u95ee&#xff1a;\u6ca1\u6709\u79c1\u94a5\u7684\u4eba\u80fd\u6253\u5f00\u6211\u7684\u670d\u52a1\u5668\u5417&#xff1f; \u7b54&#xff1a;\u4e0d\u80fd&#xff01;\u6ca1\u6709\u79c1\u94a5&#xff0c;\u5c31\u50cf\u6ca1\u6709\u94a5\u5319\u4e00\u6837&#xff0c;\u6253\u4e0d\u5f00\u95e8\u3002<\/p>\n<p>\u95ee&#xff1a;\u5982\u679c\u6211\u4e22\u4e86\u94a5\u5319\u600e\u4e48\u529e&#xff1f; \u7b54&#xff1a;\u4f60\u53ef\u4ee5\u91cd\u65b0\u751f\u6210\u4e00\u5bf9\u5bc6\u94a5&#xff0c;\u6362\u628a\u65b0\u7684\u9501&#xff08;\u516c\u94a5&#xff09;&#xff0c;\u7136\u540e\u5220\u6389\u670d\u52a1\u5668\u4e0a\u7684\u65e7\u9501\u3002<\/p>\n<hr \/>\n<h3>3. \u5728\u670d\u52a1\u5668\u4e0a\u751f\u6210 SSH \u5bc6\u94a5\u5bf9<\/h3>\n<p>\u9996\u5148&#xff0c;\u6211\u4eec\u9700\u8981\u5728\u76ee\u6807\u670d\u52a1\u5668\u4e0a\u751f\u6210 SSH \u5bc6\u94a5\u5bf9\u3002<\/p>\n<h4>2.1 \u767b\u5f55\u670d\u52a1\u5668<\/h4>\n<p>\u4f7f\u7528 SSH \u5ba2\u6237\u7aef\u5de5\u5177&#xff08;\u5982\u7ec8\u7aef\u3001Putty&#xff09;\u767b\u5f55\u5230\u8fdc\u7a0b\u670d\u52a1\u5668&#xff1a;<\/p>\n<p>ssh\u00a0&lt;username&gt;&#064;&lt;server_ip&gt;<\/p>\n<h4>2.2 \u751f\u6210\u5bc6\u94a5\u5bf9<\/h4>\n<p>\u5728\u670d\u52a1\u5668\u4e0a\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u751f\u6210\u5bc6\u94a5\u5bf9&#xff1a;<\/p>\n<p>ssh-keygen\u00a0-t\u00a0rsa\u00a0-b\u00a01024\u00a0-C\u00a0&#034;your_email&#064;example.com&#034;<\/p>\n<h5>\u53c2\u6570\u8be6\u89e3&#xff1a;<\/h5>\n<ul>\n<li>\n<p>-t rsa&#xff1a;\u6307\u5b9a\u5bc6\u94a5\u7c7b\u578b\u4e3a RSA\u3002<\/p>\n<\/li>\n<li>\n<p>-b 1024&#xff1a;\u8bbe\u7f6e\u5bc6\u94a5\u957f\u5ea6\u4e3a 4096 \u4f4d&#xff08;\u66f4\u5b89\u5168&#xff09;\u3002512-4096\u90fd\u53ef\u4ee5<\/p>\n<\/li>\n<li>\n<p>-C &#034;your_email&#064;example.com&#034;&#xff1a;\u4e3a\u5bc6\u94a5\u6dfb\u52a0\u6ce8\u91ca&#xff0c;\u65b9\u4fbf\u7ba1\u7406\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u6267\u884c\u540e&#xff0c;\u7cfb\u7edf\u4f1a\u63d0\u793a\u8f93\u5165\u5bc6\u94a5\u7684\u4fdd\u5b58\u8def\u5f84\u548c\u5bc6\u7801&#xff1a;<\/p>\n<li>\n<p>\u4fdd\u5b58\u8def\u5f84&#xff1a;\u5efa\u8bae\u6309\u56de\u8f66\u952e\u4f7f\u7528\u9ed8\u8ba4\u8def\u5f84&#xff08;~\/.ssh\/id_rsa&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u5bc6\u7801&#xff1a;\u6b64\u4e3a\u53ef\u9009\u9879&#xff0c;\u8f93\u5165\u5bc6\u7801\u53ef\u4e3a\u79c1\u94a5\u589e\u52a0\u4fdd\u62a4\u5c42&#xff0c;\u82e5\u65e0\u9700\u8bbe\u7f6e\u5bc6\u7801\u53ef\u76f4\u63a5\u56de\u8f66\u3002<\/p>\n<\/li>\n<h4>2.3 \u68c0\u67e5\u5bc6\u94a5\u751f\u6210\u7ed3\u679c<\/h4>\n<p>\u751f\u6210\u5b8c\u6210\u540e&#xff0c;\u5bc6\u94a5\u6587\u4ef6\u9ed8\u8ba4\u5b58\u653e\u5728 ~\/.ssh \u76ee\u5f55\u4e0b&#xff0c;\u5305\u542b\u4ee5\u4e0b\u4e24\u4e2a\u6587\u4ef6&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u79c1\u94a5&#xff1a;~\/.ssh\/id_rsa<\/p>\n<\/li>\n<li>\n<p>\u516c\u94a5&#xff1a;~\/.ssh\/id_rsa.pub<\/p>\n<\/li>\n<\/ul>\n<p>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770b\u516c\u94a5\u5185\u5bb9&#xff1a;<\/p>\n<p>cat\u00a0~\/.ssh\/id_rsa.pub<\/p>\n<p>\u57fa\u4e8e\u4e0a\u9762\u7684SSH\u7684\u7406\u89e3&#xff0c;\u6211\u4eec\u914d\u7f6e\u5230\u672c\u5730\u7684\u5e94\u8be5\u662f\u79c1\u94a5<\/p>\n<p>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770b\u79c1\u94a5\u5185\u5bb9&#xff1a;<\/p>\n<p>cat\u00a0~\/.ssh\/id_rsa<\/p>\n<p>\u5c06\u8f93\u51fa\u7684\u5185\u5bb9\u590d\u5236\u4e0b\u6765&#xff0c;\u4fdd\u5b58\u5230\u4f60\u672c\u5730\u7684\u4e00\u4e2a\u6587\u4ef6&#xff0c;\u7a0d\u540e\u5728 PHPStorm \u914d\u7f6e\u4e2d\u4f1a\u7528\u5230\u3002<\/p>\n<hr \/>\n<h3>3. \u914d\u7f6e\u5bc6\u94a5\u5bf9\u7684\u8bbf\u95ee\u6743\u9650<\/h3>\n<p>\u4e3a\u786e\u4fdd\u5bc6\u94a5\u7684\u4f7f\u7528\u5b89\u5168\u6027&#xff0c;\u9700\u8981\u8bbe\u7f6e .ssh \u76ee\u5f55\u548c\u5bc6\u94a5\u6587\u4ef6\u7684\u6743\u9650\u3002<\/p>\n<p>\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4&#xff1a;<\/p>\n<p>chmod\u00a0700\u00a0~\/.ssh<br \/>\nchmod\u00a0600\u00a0~\/.ssh\/id_rsa<br \/>\nchmod\u00a0600\u00a0~\/.ssh\/id_rsa.pub<\/p>\n<hr \/>\n<h3>4. \u914d\u7f6e PHPStorm \u4f7f\u7528 SSH \u79c1\u94a5<\/h3>\n<p>\u5728 PHPStorm \u4e2d\u5b8c\u6210\u5bc6\u94a5\u5bf9\u914d\u7f6e&#xff0c;\u5177\u4f53\u64cd\u4f5c\u6b65\u9aa4\u5982\u4e0b&#xff1a;<\/p>\n<h4>4.1 \u6253\u5f00 SSH \u914d\u7f6e\u7a97\u53e3<\/h4>\n<li>\n<p>\u6253\u5f00 PHPStorm\u3002<\/p>\n<\/li>\n<li>\n<p>\u8fdb\u5165 File &gt; Settings &gt; Tools &gt; SSH Configurations\u3002<\/p>\n<\/li>\n<p>\u6211\u7684\u662f\u4e2d\u6587\u7248\u7684&#xff0c;\u5982\u4e0b\u622a\u56fe&#xff1a;<\/p>\n<li>\n<p>\u70b9\u51fb &#043; \u6dfb\u52a0\u65b0\u7684 SFTP \u914d\u7f6e\u3002<\/p>\n<\/li>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1029\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250421061605-6805e2a53e81b.png\" width=\"1200\" \/><\/p>\n<p>image.png<\/p>\n<li>\n<p>\u70b9\u51fb &#8230; \u6dfb\u52a0\u65b0\u7684 SSH \u914d\u7f6e\u3002<\/p>\n<\/li>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1030\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250421061605-6805e2a5cd877.png\" width=\"1200\" \/><\/p>\n<p>image.png<\/p>\n<p>5.\u70b9\u51fb &#043; \u6dfb\u52a0\u65b0\u7684 SSH \u914d\u7f6e\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1058\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250421061606-6805e2a65f4e4.png\" width=\"1200\" \/><\/p>\n<p>image.png<\/p>\n<h4>4.2 \u914d\u7f6e SSH \u53c2\u6570<\/h4>\n<p>\u5728\u5f39\u51fa\u7684\u914d\u7f6e\u7a97\u53e3\u4e2d\u586b\u5199\u4ee5\u4e0b\u5185\u5bb9&#xff1a;<\/p>\n<ul>\n<li>\n<p>**\u4e3b\u673a (Host)**&#xff1a;\u670d\u52a1\u5668\u5730\u5740&#xff08;\u5982 192.168.1.1&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>**\u7aef\u53e3 (Port)**&#xff1a;\u9ed8\u8ba4\u503c\u4e3a 22\u3002<\/p>\n<\/li>\n<li>\n<p>**\u7528\u6237\u540d (User name)**&#xff1a;\u767b\u5f55\u670d\u52a1\u5668\u7684\u7528\u6237\u540d\u3002<\/p>\n<\/li>\n<li>\n<p>\u8eab\u4efd\u9a8c\u8bc1\u7c7b\u578b&#xff1a;\u9009\u62e9 \u5bc6\u94a5\u5bf9 OpenSSH \u6216 PuTTY\u3002<\/p>\n<\/li>\n<li>\n<p>**\u79c1\u94a5\u6587\u4ef6 (Private key file)**&#xff1a;\u9009\u62e9\u4ece\u670d\u52a1\u5668\u4e0b\u8f7d\u5230\u672c\u5730\u7684\u79c1\u94a5\u6587\u4ef6&#xff08;\u5982 id_rsa&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>**\u5bc6\u7801\u77ed\u8bed (Passphrase)**&#xff1a;\u82e5\u5728\u751f\u6210\u5bc6\u94a5\u65f6\u8bbe\u7f6e\u4e86\u5bc6\u7801&#xff0c;\u5219\u5728\u6b64\u8f93\u5165\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u914d\u7f6e\u5b8c\u6210\u540e&#xff0c;\u70b9\u51fb \u201c\u6d4b\u8bd5\u8fde\u63a5\u201d \u6309\u94ae&#xff0c;\u82e5\u663e\u793a\u8fde\u63a5\u6210\u529f&#xff0c;\u5219\u8bf4\u660e\u914d\u7f6e\u6b63\u786e\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1102\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250421061606-6805e2a6e6fd7.png\" width=\"1200\" \/><\/p>\n<p>image.png<\/p>\n<hr \/>\n<h3>5. \u5c06\u516c\u94a5\u6dfb\u52a0\u5230\u670d\u52a1\u5668\u7684 authorized_keys<\/h3>\n<p>\u4e3a\u4e86\u4f7f\u670d\u52a1\u5668\u4fe1\u4efb\u8be5\u5bc6\u94a5\u5bf9&#xff0c;\u6211\u4eec\u9700\u8981\u5c06\u751f\u6210\u7684\u516c\u94a5\u6dfb\u52a0\u5230\u670d\u52a1\u5668\u7684 authorized_keys \u6587\u4ef6\u4e2d\u3002<\/p>\n<p>\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4&#xff1a;<\/p>\n<p>echo\u00a0&#034;\u516c\u94a5\u5185\u5bb9&#034;\u00a0&gt;&gt;\u00a0~\/.ssh\/authorized_keys<\/p>\n<p>\u968f\u540e&#xff0c;\u786e\u4fdd\u6587\u4ef6\u6743\u9650\u6b63\u786e&#xff1a;<\/p>\n<p>chmod\u00a0600\u00a0~\/.ssh\/authorized_keys<\/p>\n<hr \/>\n<h3>6. \u6d4b\u8bd5\u8fde\u63a5\u4e0e\u4f7f\u7528<\/h3>\n<p>\u5b8c\u6210\u4e0a\u8ff0\u914d\u7f6e\u540e&#xff0c;\u5728 PHPStorm \u4e2d\u53ef\u4ee5\u76f4\u63a5\u901a\u8fc7 SSH \u8fde\u63a5\u5230\u670d\u52a1\u5668&#xff0c;\u8fdb\u884c\u6587\u4ef6\u540c\u6b65\u3001\u8fdc\u7a0b\u5f00\u53d1\u6216\u8c03\u8bd5\u3002<\/p>\n<h4>\u76ee\u5f55\u6620\u5c04\u914d\u7f6e<\/h4>\n<p>\u6839\u8def\u5f84\u4e00\u5b9a\u8981\u9009\u62e9\u4f60\u9879\u76ee\u6240\u5728\u7684\u8def\u5f84&#xff0c;\u8fd9\u6837\u624d\u80fd\u505a\u597d\u6620\u5c04&#xff0c;\u4e4b\u540e\u53ef\u4ee5\u65b9\u4fbf\u7684\u540c\u6b65\u6570\u636e\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1074\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250421061607-6805e2a77ce1b.png\" width=\"1200\" \/><\/p>\n<p>image.png<\/p>\n<h4>\u672c\u5730\u6539\u52a8\u4f20\u5230\u670d\u52a1\u5668<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1038\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250421061608-6805e2a821740.png\" width=\"1200\" \/><\/p>\n<p>image.png<\/p>\n<h4>\u670d\u52a1\u5668\u6587\u4ef6\u4e0b\u8f7d\u5230\u672c\u5730<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1200\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250421061608-6805e2a8ab027.png\" width=\"1200\" \/><\/p>\n<p>image.png<\/p>\n<h3>\u6ce8\u610f&#xff1a;\u5982\u679c\u4f60\u6ca1\u505a\u597d\u6620\u5c04&#xff0c;\u662f\u4e0d\u4f1a\u51fa\u73b0\u8fd9\u4e2a\u83dc\u5355\u7684\u3002<\/h3>\n<h3>7. \u5e38\u89c1\u95ee\u9898\u4e0e\u89e3\u51b3\u65b9\u6848<\/h3>\n<h4>\u95ee\u9898 1&#xff1a;\u6d4b\u8bd5\u8fde\u63a5\u5931\u8d25<\/h4>\n<ul>\n<li>\u68c0\u67e5\u670d\u52a1\u5668\u7684 SSH \u670d\u52a1\u662f\u5426\u6b63\u5e38\u8fd0\u884c&#xff1a; sudo\u00a0systemctl\u00a0status\u00a0sshd\n <\/li>\n<li>\n<p>\u786e\u4fdd\u9632\u706b\u5899\u89c4\u5219\u5141\u8bb8\u7aef\u53e3 22\u3002<\/p>\n<\/li>\n<\/ul>\n<h4>\u95ee\u9898 2&#xff1a;\u65e0\u6cd5\u8bfb\u53d6\u79c1\u94a5\u6587\u4ef6<\/h4>\n<ul>\n<li>\u786e\u4fdd\u672c\u5730\u79c1\u94a5\u6587\u4ef6\u6743\u9650\u8bbe\u7f6e\u6b63\u786e&#xff1a; chmod\u00a0600\u00a0~\/.ssh\/id_rsa\n <\/li>\n<\/ul>\n<h4>\u95ee\u9898 3&#xff1a;\u63d0\u793a \u201cPermission denied\u201d<\/h4>\n<ul>\n<li>\n<p>\u786e\u4fdd\u516c\u94a5\u5df2\u7ecf\u6b63\u786e\u6dfb\u52a0\u5230\u670d\u52a1\u5668\u7684 authorized_keys \u6587\u4ef6\u3002<\/p>\n<\/li>\n<\/ul>\n<hr \/>\n<h3>8. \u603b\u7ed3<\/h3>\n<p>\u901a\u8fc7\u672c\u6587\u7684\u6559\u7a0b&#xff0c;\u6211\u4eec\u6210\u529f\u5b8c\u6210\u4e86\u4ee5\u4e0b\u64cd\u4f5c&#xff1a;<\/p>\n<li>\n<p>\u5728\u670d\u52a1\u5668\u4e0a\u751f\u6210 SSH \u5bc6\u94a5\u5bf9\u3002<\/p>\n<\/li>\n<li>\n<p>\u5c06\u5bc6\u94a5\u6b63\u786e\u914d\u7f6e\u5230 PHPStorm \u4e2d\u3002<\/p>\n<\/li>\n<li>\n<p>\u4f7f\u7528\u5bc6\u94a5\u5bf9\u5b9e\u73b0\u65e0\u5bc6\u7801\u8fdc\u7a0b\u8fde\u63a5\u3002<\/p>\n<\/li>\n<p>SSH \u5bc6\u94a5\u5bf9\u4e0d\u4ec5\u63d0\u5347\u4e86\u5f00\u53d1\u6548\u7387&#xff0c;\u4e5f\u663e\u8457\u589e\u5f3a\u4e86\u670d\u52a1\u5668\u8fde\u63a5\u7684\u5b89\u5168\u6027&#xff0c;\u662f\u73b0\u4ee3\u8fdc\u7a0b\u5f00\u53d1\u7684\u6700\u4f73\u5b9e\u8df5\u4e4b\u4e00\u3002\u5e0c\u671b\u672c\u6587\u5bf9\u60a8\u6709\u6240\u5e2e\u52a9&#xff01;<\/p>\n<hr \/>\n<p>\u66f4\u591a\u6280\u672f\u5185\u5bb9&#xff0c;\u6b22\u8fce\u5173\u6ce8\u6211\u4eec\u7684\u5206\u4eab&#xff01;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\uff0c\u70b9\u8d5e9\u6b21\uff0c\u6536\u85cf23\u6b21\u3002SSH \u5bc6\u94a5\u5bf9\u5c31\u50cf\u4e00\u5bf9\u201c\u9501\u201d\u548c\u201c\u94a5\u5319\u201d\uff0c\u7528\u6765\u4fdd\u8bc1\u4f60\u7684\u7535\u8111\u548c\u670d\u52a1\u5668\u4e4b\u95f4\u7684\u901a\u4fe1\u662f\u5b89\u5168\u7684\u3002\u516c\u94a5\uff08Public Key\uff09\uff1a\u76f8\u5f53\u4e8e\u4e00\u628a\u201c\u9501\u201d\uff0c\u53ef\u4ee5\u516c\u5f00\u653e\u5728\u670d\u52a1\u5668\u4e0a\uff0c\u4efb\u4f55\u4eba\u90fd\u80fd\u770b\u5230\u3002\u79c1\u94a5\uff08Private Key\uff09\uff1a\u76f8\u5f53\u4e8e\u4e00\u628a\u201c\u94a5\u5319\u201d\uff0c\u53ea\u80fd\u4f60\u81ea\u5df1\u4fdd\u7ba1\uff0c\u4e0d\u80fd\u7ed9\u522b\u4eba\u3002\u670d\u52a1\u5668\u901a\u8fc7\u201c\u516c\u94a5\u201d\u6765\u68c0\u67e5\u4f60\u7684\u201c\u94a5\u5319\u201d\u662f\u4e0d\u662f\u5339\u914d\u3002\u5982\u679c\u5339\u914d\uff0c\u5c31\u8ba9\u4f60\u8fdb\u53bb\uff1b\u5982\u679c\u4e0d\u5339\u914d\uff0c\u5c31\u62d2\u7edd\u8bbf\u95ee\u3002\u901a\u8fc7\u672c\u6587\u7684\u6559\u7a0b\uff0c\u6211\u4eec\u6210\u529f\u5b8c\u6210\u4e86\u4ee5\u4e0b\u64cd\u4f5c\uff1a\u5728\u670d\u52a1\u5668\u4e0a\u751f\u6210 SSH \u5bc6\u94a5\u5bf9\u3002\u5c06\u5bc6\u94a5\u6b63\u786e\u914d\u7f6e\u5230 PHPStorm \u4e2d\u3002\u4f7f\u7528\u5bc6\u94a5\u5bf9\u5b9e\u73b0\u65e0\u5bc6\u7801\u8fdc\u7a0b\u8fde\u63a5\u3002_phpstorm ssh<\/p>\n","protected":false},"author":2,"featured_media":31465,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[92],"topic":[],"class_list":["post-31472","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-github"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>PHPStorm\u914d\u7f6eSSH\u5bc6\u94a5\u5bf9\u8fdc\u7a0b\u8fde\u63a5\u670d\u52a1\u5668\u540c\u6b65\u4ee3\u7801\u6559\u7a0b\uff0c\u65b9\u4fbf\u8fdc\u7a0b\u7f16\u8f91\u670d\u52a1\u5668\u9879\u76ee - \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\/31472.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PHPStorm\u914d\u7f6eSSH\u5bc6\u94a5\u5bf9\u8fdc\u7a0b\u8fde\u63a5\u670d\u52a1\u5668\u540c\u6b65\u4ee3\u7801\u6559\u7a0b\uff0c\u65b9\u4fbf\u8fdc\u7a0b\u7f16\u8f91\u670d\u52a1\u5668\u9879\u76ee - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\uff0c\u70b9\u8d5e9\u6b21\uff0c\u6536\u85cf23\u6b21\u3002SSH \u5bc6\u94a5\u5bf9\u5c31\u50cf\u4e00\u5bf9\u201c\u9501\u201d\u548c\u201c\u94a5\u5319\u201d\uff0c\u7528\u6765\u4fdd\u8bc1\u4f60\u7684\u7535\u8111\u548c\u670d\u52a1\u5668\u4e4b\u95f4\u7684\u901a\u4fe1\u662f\u5b89\u5168\u7684\u3002\u516c\u94a5\uff08Public Key\uff09\uff1a\u76f8\u5f53\u4e8e\u4e00\u628a\u201c\u9501\u201d\uff0c\u53ef\u4ee5\u516c\u5f00\u653e\u5728\u670d\u52a1\u5668\u4e0a\uff0c\u4efb\u4f55\u4eba\u90fd\u80fd\u770b\u5230\u3002\u79c1\u94a5\uff08Private Key\uff09\uff1a\u76f8\u5f53\u4e8e\u4e00\u628a\u201c\u94a5\u5319\u201d\uff0c\u53ea\u80fd\u4f60\u81ea\u5df1\u4fdd\u7ba1\uff0c\u4e0d\u80fd\u7ed9\u522b\u4eba\u3002\u670d\u52a1\u5668\u901a\u8fc7\u201c\u516c\u94a5\u201d\u6765\u68c0\u67e5\u4f60\u7684\u201c\u94a5\u5319\u201d\u662f\u4e0d\u662f\u5339\u914d\u3002\u5982\u679c\u5339\u914d\uff0c\u5c31\u8ba9\u4f60\u8fdb\u53bb\uff1b\u5982\u679c\u4e0d\u5339\u914d\uff0c\u5c31\u62d2\u7edd\u8bbf\u95ee\u3002\u901a\u8fc7\u672c\u6587\u7684\u6559\u7a0b\uff0c\u6211\u4eec\u6210\u529f\u5b8c\u6210\u4e86\u4ee5\u4e0b\u64cd\u4f5c\uff1a\u5728\u670d\u52a1\u5668\u4e0a\u751f\u6210 SSH \u5bc6\u94a5\u5bf9\u3002\u5c06\u5bc6\u94a5\u6b63\u786e\u914d\u7f6e\u5230 PHPStorm \u4e2d\u3002\u4f7f\u7528\u5bc6\u94a5\u5bf9\u5b9e\u73b0\u65e0\u5bc6\u7801\u8fdc\u7a0b\u8fde\u63a5\u3002_phpstorm ssh\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/31472.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-21T06:16:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250421061605-6805e2a53e81b.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=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/31472.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/31472.html\",\"name\":\"PHPStorm\u914d\u7f6eSSH\u5bc6\u94a5\u5bf9\u8fdc\u7a0b\u8fde\u63a5\u670d\u52a1\u5668\u540c\u6b65\u4ee3\u7801\u6559\u7a0b\uff0c\u65b9\u4fbf\u8fdc\u7a0b\u7f16\u8f91\u670d\u52a1\u5668\u9879\u76ee - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-21T06:16:10+00:00\",\"dateModified\":\"2025-04-21T06:16:10+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/31472.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/31472.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/31472.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PHPStorm\u914d\u7f6eSSH\u5bc6\u94a5\u5bf9\u8fdc\u7a0b\u8fde\u63a5\u670d\u52a1\u5668\u540c\u6b65\u4ee3\u7801\u6559\u7a0b\uff0c\u65b9\u4fbf\u8fdc\u7a0b\u7f16\u8f91\u670d\u52a1\u5668\u9879\u76ee\"}]},{\"@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":"PHPStorm\u914d\u7f6eSSH\u5bc6\u94a5\u5bf9\u8fdc\u7a0b\u8fde\u63a5\u670d\u52a1\u5668\u540c\u6b65\u4ee3\u7801\u6559\u7a0b\uff0c\u65b9\u4fbf\u8fdc\u7a0b\u7f16\u8f91\u670d\u52a1\u5668\u9879\u76ee - \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\/31472.html","og_locale":"zh_CN","og_type":"article","og_title":"PHPStorm\u914d\u7f6eSSH\u5bc6\u94a5\u5bf9\u8fdc\u7a0b\u8fde\u63a5\u670d\u52a1\u5668\u540c\u6b65\u4ee3\u7801\u6559\u7a0b\uff0c\u65b9\u4fbf\u8fdc\u7a0b\u7f16\u8f91\u670d\u52a1\u5668\u9879\u76ee - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\uff0c\u70b9\u8d5e9\u6b21\uff0c\u6536\u85cf23\u6b21\u3002SSH \u5bc6\u94a5\u5bf9\u5c31\u50cf\u4e00\u5bf9\u201c\u9501\u201d\u548c\u201c\u94a5\u5319\u201d\uff0c\u7528\u6765\u4fdd\u8bc1\u4f60\u7684\u7535\u8111\u548c\u670d\u52a1\u5668\u4e4b\u95f4\u7684\u901a\u4fe1\u662f\u5b89\u5168\u7684\u3002\u516c\u94a5\uff08Public Key\uff09\uff1a\u76f8\u5f53\u4e8e\u4e00\u628a\u201c\u9501\u201d\uff0c\u53ef\u4ee5\u516c\u5f00\u653e\u5728\u670d\u52a1\u5668\u4e0a\uff0c\u4efb\u4f55\u4eba\u90fd\u80fd\u770b\u5230\u3002\u79c1\u94a5\uff08Private Key\uff09\uff1a\u76f8\u5f53\u4e8e\u4e00\u628a\u201c\u94a5\u5319\u201d\uff0c\u53ea\u80fd\u4f60\u81ea\u5df1\u4fdd\u7ba1\uff0c\u4e0d\u80fd\u7ed9\u522b\u4eba\u3002\u670d\u52a1\u5668\u901a\u8fc7\u201c\u516c\u94a5\u201d\u6765\u68c0\u67e5\u4f60\u7684\u201c\u94a5\u5319\u201d\u662f\u4e0d\u662f\u5339\u914d\u3002\u5982\u679c\u5339\u914d\uff0c\u5c31\u8ba9\u4f60\u8fdb\u53bb\uff1b\u5982\u679c\u4e0d\u5339\u914d\uff0c\u5c31\u62d2\u7edd\u8bbf\u95ee\u3002\u901a\u8fc7\u672c\u6587\u7684\u6559\u7a0b\uff0c\u6211\u4eec\u6210\u529f\u5b8c\u6210\u4e86\u4ee5\u4e0b\u64cd\u4f5c\uff1a\u5728\u670d\u52a1\u5668\u4e0a\u751f\u6210 SSH \u5bc6\u94a5\u5bf9\u3002\u5c06\u5bc6\u94a5\u6b63\u786e\u914d\u7f6e\u5230 PHPStorm \u4e2d\u3002\u4f7f\u7528\u5bc6\u94a5\u5bf9\u5b9e\u73b0\u65e0\u5bc6\u7801\u8fdc\u7a0b\u8fde\u63a5\u3002_phpstorm ssh","og_url":"https:\/\/www.wsisp.com\/helps\/31472.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-21T06:16:10+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250421061605-6805e2a53e81b.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/31472.html","url":"https:\/\/www.wsisp.com\/helps\/31472.html","name":"PHPStorm\u914d\u7f6eSSH\u5bc6\u94a5\u5bf9\u8fdc\u7a0b\u8fde\u63a5\u670d\u52a1\u5668\u540c\u6b65\u4ee3\u7801\u6559\u7a0b\uff0c\u65b9\u4fbf\u8fdc\u7a0b\u7f16\u8f91\u670d\u52a1\u5668\u9879\u76ee - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-21T06:16:10+00:00","dateModified":"2025-04-21T06:16:10+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/31472.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/31472.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/31472.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"PHPStorm\u914d\u7f6eSSH\u5bc6\u94a5\u5bf9\u8fdc\u7a0b\u8fde\u63a5\u670d\u52a1\u5668\u540c\u6b65\u4ee3\u7801\u6559\u7a0b\uff0c\u65b9\u4fbf\u8fdc\u7a0b\u7f16\u8f91\u670d\u52a1\u5668\u9879\u76ee"}]},{"@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\/31472","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=31472"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/31472\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/31465"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=31472"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=31472"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=31472"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=31472"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}