{"id":86684,"date":"2026-07-29T01:56:32","date_gmt":"2026-07-28T17:56:32","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/86684.html"},"modified":"2026-07-29T01:56:32","modified_gmt":"2026-07-28T17:56:32","slug":"%e3%80%90vs-codecursor-ssh%e8%bf%9e%e4%b8%8d%e4%b8%8a%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%884%ef%bc%89%e3%80%91cursor%e8%bf%9c%e7%a8%8b%e8%bf%9e%e6%8e%a5%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%8d%a1%e6%ad%bb","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/86684.html","title":{"rendered":"\u3010vs code(cursor) ssh\u8fde\u4e0d\u4e0a\u670d\u52a1\u5668\uff084\uff09\u3011Cursor\u8fdc\u7a0b\u8fde\u63a5\u670d\u52a1\u5668\u5361\u6b7b\uff08Waiting for server log\uff09\u6545\u969c\u6392\u67e5\u5168\u6d41\u7a0b"},"content":{"rendered":"<h2>\u7cfb\u5217\u6587\u7ae0\u76ee\u5f55<\/h2>\n<ul>\n<li>\u3010vs code(cursor) ssh\u8fde\u4e0d\u4e0a\u670d\u52a1\u5668\u3011\u4f46\u662f Terminal \u53ef\u4ee5\u8fde\u4e0a&#xff0c;\u95ee\u9898\u89e3\u51b3 \u2705\n<ul>\n<li>\u65b9\u6cd51&#xff0c;\u91cd\u65b0\u8bbe\u7f6e config<\/li>\n<\/ul>\n<\/li>\n<li>\u3010vs code(cursor) ssh\u8fde\u4e0d\u4e0a\u670d\u52a1\u5668&#xff08;2&#xff09;\u3011\u4f46\u662f Terminal \u53ef\u4ee5\u8fde\u4e0a&#xff0c;\u95ee\u9898\u89e3\u51b3 \u2705\n<ul>\n<li>\u65b9\u6cd52&#xff0c; \u5ef6\u957f ConnectTimeout<\/li>\n<\/ul>\n<\/li>\n<li>\u6b64\u5916&#xff0c;\u8fd8\u5c1d\u8bd5\u4e86&#xff08;3&#xff09;\u6539 ssh path&#xff0c;&#xff08;4&#xff09;\u4e0e\u670d\u52a1\u5668\u7684 vs code \u7248\u672c\u4e0d\u4e00\u81f4&#xff0c;\u7b49\u5378\u8f7d\u540e\u91cd\u65b0\u4e0b\u8f7d\u4f4e\u7248\u672c vs code \u65b9\u6cd5\u90fd\u4e0d\u594f\u6548\u65f6\u3002<\/li>\n<li>\u3010vs code(cursor) ssh\u8fde\u4e0d\u4e0a\u670d\u52a1\u5668&#xff08;3&#xff09;\u3011\u65e0\u6cd5\u8fde\u63a5\u5230\u8fdc\u7a0b\u6269\u5c55\u4e3b\u673a\u670d\u52a1\u5668 (\u9519\u8bef: CodeError(AsyncPipeFailed(Os { code: 2, kind: NotF<\/li>\n<\/ul>\n<hr \/>\n<p>\u63d0\u793a&#xff1a;\u5199\u5b8c\u6587\u7ae0\u540e&#xff0c;\u76ee\u5f55\u53ef\u4ee5\u81ea\u52a8\u751f\u6210&#xff0c;\u5982\u4f55\u751f\u6210\u53ef\u53c2\u8003\u53f3\u8fb9\u7684\u5e2e\u52a9\u6587\u6863<\/p>\n<\/p>\n<h4>\u6587\u7ae0\u76ee\u5f55<\/h4>\n<ul>\n<li>\u7cfb\u5217\u6587\u7ae0\u76ee\u5f55<\/li>\n<li>\u67e5\u770b\u6240\u6709\u4e0ecursor\u76f8\u5173\u7684\u8fdb\u7a0b&#xff08;\u6392\u9664grep\u81ea\u8eab\u8fdb\u7a0b&#xff09;<\/li>\n<li>\u67e5\u770b\u5f53\u524d\u7528\u6237\u7684cursor\u8fdb\u7a0b&#xff08;\u7b5b\u9009\u5f53\u524d\u7528\u6237UID&#xff09;<\/li>\n<li>\u67e5\u770b\u76ee\u5f55\u6743\u9650<\/li>\n<li>\u6279\u91cf\u7ec8\u6b62\u5f53\u524d\u7528\u6237\u7684\u6240\u6709cursor\u8fdb\u7a0b&#xff08;\u5b89\u5168\u65e0\u5f71\u54cd&#xff09;<\/li>\n<li>\u9a8c\u8bc1\u6e05\u7406\u7ed3\u679c&#xff08;\u65e0\u8f93\u51fa\u5373\u6e05\u7406\u5b8c\u6210&#xff09;<\/li>\n<li>\u5220\u9664\u5f53\u524d\u7528\u6237\u7684Cursor\u8fdc\u7a0b\u670d\u52a1\u76ee\u5f55<\/li>\n<li>\u53ef\u9009&#xff1a;\u6e05\u7406Cursor\u672c\u5730\u7f13\u5b58&#xff08;\u907f\u514d\u6b8b\u7559\u914d\u7f6e\u5e72\u6270&#xff09;<\/li>\n<li>\u65b9\u5f0f1&#xff1a;\u4e34\u65f6\u7981\u7528&#xff08;\u672c\u6b21\u767b\u5f55\u751f\u6548&#xff09;<\/li>\n<li>\u65b9\u5f0f2&#xff1a;\u6c38\u4e45\u7981\u7528&#xff08;\u907f\u514d\u4e0b\u6b21\u767b\u5f55\u81ea\u52a8\u6fc0\u6d3b&#xff0c;\u53ef\u9009&#xff09;<\/li>\n<\/ul>\n<hr \/>\n<p>Cursor\u8fdc\u7a0b\u8fde\u63a5\u670d\u52a1\u5668\u5361\u6b7b&#xff08;Waiting for server log&#xff09;\u6545\u969c\u6392\u67e5\u5168\u6d41\u7a0b<\/p>\n<p>\u5728\u4f7f\u7528Cursor\u901a\u8fc7Remote SSH\u8fde\u63a5Linux\u670d\u52a1\u5668\u65f6&#xff0c;\u7ecf\u5e38\u4f1a\u9047\u5230\u300cWaiting for server log\u300d\u5361\u6b7b\u7684\u95ee\u9898&#xff0c;\u53cd\u590d\u91cd\u8fde\u4ecd\u65e0\u6cd5\u89e3\u51b3&#xff0c;\u540e\u53f0\u8fd8\u4f1a\u5806\u79ef\u5927\u91cf\u76f8\u5173\u8fdb\u7a0b\u3002\u672c\u6587\u7ed3\u5408\u5b9e\u9645\u6392\u67e5\u573a\u666f&#xff0c;\u68b3\u7406\u5b8c\u6574\u7684\u6545\u969c\u5b9a\u4f4d\u3001\u5206\u6790\u53ca\u89e3\u51b3\u6d41\u7a0b&#xff0c;\u9002\u7528\u4e8e\u591a\u7528\u6237\u5171\u7528\u670d\u52a1\u5668\u3001\u73af\u5883\u5b58\u5728\u5e72\u6270&#xff08;\u5982Conda&#xff09;\u7684\u5e38\u89c1\u573a\u666f&#xff0c;\u4f9b\u5927\u5bb6\u53c2\u8003\u590d\u7528\u3002<\/p>\n<p>\u4e00\u3001\u6545\u969c\u73b0\u8c61<\/p>\n<li>\n<p>\u672c\u5730Cursor\u901a\u8fc7Remote SSH\u8fde\u63a5\u76ee\u6807\u670d\u52a1\u5668&#xff0c;\u8f93\u5165\u5bc6\u7801\u540e\u9a8c\u8bc1\u901a\u8fc7&#xff0c;\u5374\u4e00\u76f4\u5361\u5728\u300cWaiting for server log\u300d\u754c\u9762&#xff0c;\u65e0\u6cd5\u8fdb\u5165\u8fdc\u7a0b\u5de5\u4f5c\u533a&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u591a\u6b21\u5173\u95ed\u7a97\u53e3\u3001\u91cd\u65b0\u8fde\u63a5\u540e&#xff0c;\u6545\u969c\u4f9d\u65e7&#xff0c;\u4e14\u670d\u52a1\u5668\u540e\u53f0\u51fa\u73b0\u5927\u91cf\u4e0eCursor\u76f8\u5173\u7684\u8fdb\u7a0b&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u67e5\u770bCursor\u8fdc\u7a0b\u670d\u52a1\u65e5\u5fd7\u6587\u4ef6&#xff08;.cursor-server\/.cli-xxx.log&#xff09;&#xff0c;\u53d1\u73b0\u65e5\u5fd7\u4e3a\u7a7a&#xff0c;\u65e0\u6cd5\u901a\u8fc7\u65e5\u5fd7\u5b9a\u4f4d\u76f4\u63a5\u9519\u8bef\u3002<\/p>\n<\/li>\n<p>\u8865\u5145\u670d\u52a1\u5668\u57fa\u7840\u4fe1\u606f&#xff08;\u6392\u67e5\u53c2\u8003&#xff09;&#xff1a;Ubuntu 24.04.4 LTS\u7cfb\u7edf&#xff0c;\u5b58\u5728\u591a\u7528\u6237\u5171\u7528&#xff0c;\u7cfb\u7edf\u8d1f\u8f7d\u8f83\u9ad8&#xff08;load\u503c8&#043;&#xff09;&#xff0c;\u5185\u5b58\u4f7f\u7528\u7387\u6b63\u5e38&#xff0c;Swap\u4f7f\u7528\u738730%\u5de6\u53f3\u3002<\/p>\n<p>\u4e8c\u3001\u6392\u67e5\u601d\u8def\u4e0e\u6b65\u9aa4<\/p>\n<p>\u6392\u67e5\u6838\u5fc3\u903b\u8f91&#xff1a;\u5148\u786e\u8ba4SSH\u8fde\u63a5\u662f\u5426\u6b63\u5e38 \u2192 \u5b9a\u4f4dCursor\u8fdb\u7a0b\u5f02\u5e38 \u2192 \u6392\u67e5\u6743\u9650\/\u73af\u5883\/\u7f13\u5b58\u95ee\u9898 \u2192 \u9010\u6b65\u6e05\u7406\u4fee\u590d&#xff0c;\u5168\u7a0b\u907f\u514d\u5f71\u54cd\u5176\u4ed6\u7528\u6237\u3002<\/p>\n<p>\u6b65\u9aa41&#xff1a;\u786e\u8ba4SSH\u8fde\u63a5\u6709\u6548\u6027<\/p>\n<p>\u9996\u5148\u6392\u9664SSH\u8fde\u63a5\u672c\u8eab\u7684\u95ee\u9898&#xff0c;\u901a\u8fc7\u7ec8\u7aef\u76f4\u63a5SSH\u767b\u5f55\u670d\u52a1\u5668&#xff0c;\u9a8c\u8bc1\u8fde\u63a5\u662f\u5426\u6b63\u5e38&#xff1a;<\/p>\n<p>ssh \u76ee\u6807\u670d\u52a1\u5668IP\/\u4e3b\u673a\u540d<\/p>\n<p>\u82e5\u80fd\u6b63\u5e38\u767b\u5f55&#xff0c;\u8bf4\u660eSSH\u8fde\u63a5\u65e0\u5f02\u5e38&#xff0c;\u6545\u969c\u805a\u7126\u4e8eCursor\u8fdc\u7a0b\u670d\u52a1\u672c\u8eab&#xff1b;\u82e5\u65e0\u6cd5\u767b\u5f55&#xff0c;\u9700\u5148\u6392\u67e5SSH\u914d\u7f6e\u3001\u9632\u706b\u5899\u3001\u7aef\u53e3&#xff08;22\u7aef\u53e3&#xff09;\u7b49\u57fa\u7840\u95ee\u9898\u3002<\/p>\n<p>\u672c\u6b21\u6392\u67e5\u4e2d&#xff0c;\u7ec8\u7aefSSH\u53ef\u6b63\u5e38\u767b\u5f55&#xff0c;\u6392\u9664SSH\u5c42\u9762\u6545\u969c\u3002<\/p>\n<p>\u6b65\u9aa42&#xff1a;\u67e5\u770bCursor\u76f8\u5173\u8fdb\u7a0b&#xff0c;\u533a\u5206\u7528\u6237\u8fdb\u7a0b<\/p>\n<p>\u670d\u52a1\u5668\u591a\u7528\u6237\u5171\u7528\u65f6&#xff0c;\u9700\u5148\u533a\u5206\u5f53\u524d\u7528\u6237\u4e0e\u5176\u4ed6\u7528\u6237\u7684Cursor\u8fdb\u7a0b&#xff0c;\u907f\u514d\u8bef\u64cd\u4f5c\u5f71\u54cd\u4ed6\u4eba\u3002\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770b\u6240\u6709Cursor\u76f8\u5173\u8fdb\u7a0b&#xff1a;<\/p>\n<h2>\u67e5\u770b\u6240\u6709\u4e0ecursor\u76f8\u5173\u7684\u8fdb\u7a0b&#xff08;\u6392\u9664grep\u81ea\u8eab\u8fdb\u7a0b&#xff09;<\/h2>\n<p>ps -ef | grep cursor | grep -v grep<\/p>\n<h2>\u67e5\u770b\u5f53\u524d\u7528\u6237\u7684cursor\u8fdb\u7a0b&#xff08;\u7b5b\u9009\u5f53\u524d\u7528\u6237UID&#xff09;<\/h2>\n<p>pgrep -u \u5f53\u524d\u7528\u6237UID -f cursor<\/p>\n<p>\u6392\u67e5\u53d1\u73b0&#xff1a;\u5f53\u524d\u7528\u6237\u540e\u53f0\u5806\u79ef\u4e86\u5927\u91cfCursor\u8fdb\u7a0b&#xff08;\u5305\u62ecCLI\u8fdb\u7a0b\u3001\u7ec8\u7aef\u96c6\u6210\u8fdb\u7a0b&#xff09;&#xff0c;\u800c\u5176\u4ed6\u7528\u6237\u7684Cursor\u8fdb\u7a0b\u6b63\u5e38\u8fd0\u884c&#xff0c;\u8bf4\u660e\u6545\u969c\u662f\u5f53\u524d\u7528\u6237\u7684\u8fdb\u7a0b\u5806\u79ef\u5bfc\u81f4&#xff0c;\u4e0e\u5176\u4ed6\u7528\u6237\u65e0\u5173\u3002<\/p>\n<p>\u6b65\u9aa43&#xff1a;\u6392\u67e5Cursor\u65e5\u5fd7\u4e0e\u76ee\u5f55\u6743\u9650<\/p>\n<p>Cursor\u8fdc\u7a0b\u670d\u52a1\u4f1a\u751f\u6210\u65e5\u5fd7\u6587\u4ef6&#xff08;\u8def\u5f84&#xff1a;~\/.cursor-server\/.cli-xxx.log&#xff09;&#xff0c;\u7528\u4e8e\u8bb0\u5f55\u542f\u52a8\u8fc7\u7a0b\u4e2d\u7684\u9519\u8bef&#xff0c;\u4f46\u672c\u6b21\u6392\u67e5\u4e2d\u65e5\u5fd7\u4e3a\u7a7a&#xff0c;\u8fdb\u4e00\u6b65\u5206\u6790\u53ef\u80fd\u539f\u56e0&#xff1a;<\/p>\n<li>\n<p>\u65e5\u5fd7\u6587\u4ef6\u65e0\u6cd5\u5199\u5165&#xff08;\u6743\u9650\u4e0d\u8db3&#xff09;&#xff1b;<\/p>\n<\/li>\n<li>\n<p>Cursor\u8fdc\u7a0bCLI\u8fdb\u7a0b\u542f\u52a8\u77ac\u95f4\u5d29\u6e83&#xff0c;\u672a\u6765\u5f97\u53ca\u5199\u5165\u65e5\u5fd7\u3002<\/p>\n<\/li>\n<p>\u5148\u68c0\u67e5Cursor\u8fdc\u7a0b\u670d\u52a1\u76ee\u5f55&#xff08;~\/.cursor-server&#xff09;\u7684\u6743\u9650&#xff1a;<\/p>\n<h2>\u67e5\u770b\u76ee\u5f55\u6743\u9650<\/h2>\n<p>ls -ld ~\/.cursor-server<\/p>\n<p>\u672c\u6b21\u6392\u67e5\u4e2d&#xff0c;\u76ee\u5f55\u6743\u9650\u4e3adrwxrwxr-x&#xff0c;\u6240\u5c5e\u7528\u6237\u4e0e\u5f53\u524d\u7528\u6237\u4e00\u81f4&#xff0c;\u6743\u9650\u6b63\u5e38&#xff0c;\u6392\u9664\u6743\u9650\u5bfc\u81f4\u7684\u65e5\u5fd7\u65e0\u6cd5\u5199\u5165\u95ee\u9898&#xff0c;\u786e\u5b9a\u6545\u969c\u4e3aCursor\u8fdb\u7a0b\u542f\u52a8\u5f02\u5e38\u3002<\/p>\n<p>\u6b65\u9aa44&#xff1a;\u5206\u6790\u8fdb\u7a0b\u5806\u79ef\u4e0e\u542f\u52a8\u5f02\u5e38\u539f\u56e0<\/p>\n<p>\u7ed3\u5408\u6392\u67e5\u7ed3\u679c&#xff0c;\u68b3\u7406\u51fa\u8fdb\u7a0b\u5806\u79ef\u53ca\u542f\u52a8\u5f02\u5e38\u7684\u6838\u5fc3\u539f\u56e0&#xff1a;<\/p>\n<li>\n<p>\u591a\u6b21\u91cd\u8fde\u5bfc\u81f4\u8fdb\u7a0b\u5806\u79ef&#xff1a;\u6bcf\u6b21\u8fde\u63a5\u5361\u6b7b\u65f6&#xff0c;\u5173\u95ed\u7a97\u53e3\u672a\u5f7b\u5e95\u7ec8\u6b62\u540e\u53f0\u8fdb\u7a0b&#xff0c;\u53cd\u590d\u91cd\u8fde\u540e&#xff0c;\u65e7\u8fdb\u7a0b\u6b8b\u7559&#xff0c;\u65b0\u8fdb\u7a0b\u65e0\u6cd5\u6b63\u5e38\u542f\u52a8&#xff0c;\u5f62\u6210\u201c\u5806\u79ef\u5835\u6b7b\u201d&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u73af\u5883\u5e72\u6270&#xff08;Conda\u81ea\u52a8\u6fc0\u6d3b&#xff09;&#xff1a;\u5f53\u524d\u7528\u6237\u767b\u5f55\u540e\u81ea\u52a8\u6fc0\u6d3bConda\u57fa\u7840\u73af\u5883&#xff0c;\u73af\u5883\u53d8\u91cf\u88ab\u4fee\u6539&#xff0c;\u5bfc\u81f4Cursor\u8fdc\u7a0bCLI\u8fdb\u7a0b\u542f\u52a8\u65f6\u4f9d\u8d56\u5e93\u8def\u5f84\u5f02\u5e38&#xff0c;\u542f\u52a8\u5931\u8d25\u5e76\u5361\u6b7b&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u670d\u52a1\u5668\u8d1f\u8f7d\u8f83\u9ad8&#xff1a;\u7cfb\u7edf\u8d1f\u8f7d\u504f\u9ad8&#xff0c;Cursor\u8fdc\u7a0b\u670d\u52a1\u5360\u7528\u8d44\u6e90\u8f83\u5927&#xff0c;\u8fdb\u4e00\u6b65\u52a0\u5267\u8fdb\u7a0b\u542f\u52a8\u5931\u8d25\u548c\u5361\u6b7b\u6982\u7387\u3002<\/p>\n<\/li>\n<p>\u4e09\u3001\u89e3\u51b3\u65b9\u6848&#xff08;\u5206\u6b65\u9aa4\u6267\u884c&#xff0c;\u5b89\u5168\u65e0\u5f71\u54cd&#xff09;<\/p>\n<p>\u6838\u5fc3\u539f\u5219&#xff1a;\u53ea\u64cd\u4f5c\u5f53\u524d\u7528\u6237\u7684\u8fdb\u7a0b\u548c\u76ee\u5f55&#xff0c;\u4e0d\u5f71\u54cd\u5176\u4ed6\u7528\u6237&#xff0c;\u5f7b\u5e95\u6e05\u7406\u6b8b\u7559&#xff0c;\u4fee\u590d\u73af\u5883\u5e72\u6270\u3002<\/p>\n<p>\u6b65\u9aa41&#xff1a;\u5b89\u5168\u6e05\u7406\u5f53\u524d\u7528\u6237\u7684Cursor\u6b8b\u7559\u8fdb\u7a0b<\/p>\n<p>\u4ec5\u7b5b\u9009\u5f53\u524d\u7528\u6237\u7684Cursor\u8fdb\u7a0b&#xff0c;\u6279\u91cf\u7ec8\u6b62&#xff0c;\u907f\u514d\u8bef\u6740\u5176\u4ed6\u7528\u6237\u8fdb\u7a0b&#xff1a;<\/p>\n<h2>\u6279\u91cf\u7ec8\u6b62\u5f53\u524d\u7528\u6237\u7684\u6240\u6709cursor\u8fdb\u7a0b&#xff08;\u5b89\u5168\u65e0\u5f71\u54cd&#xff09;<\/h2>\n<p>pgrep -u \u5f53\u524d\u7528\u6237UID -f cursor | xargs -r kill -9<\/p>\n<h2>\u9a8c\u8bc1\u6e05\u7406\u7ed3\u679c&#xff08;\u65e0\u8f93\u51fa\u5373\u6e05\u7406\u5b8c\u6210&#xff09;<\/h2>\n<p>pgrep -u \u5f53\u524d\u7528\u6237UID -f cursor<\/p>\n<p>\u6b65\u9aa42&#xff1a;\u6e05\u7406Cursor\u8fdc\u7a0b\u670d\u52a1\u7f13\u5b58\u76ee\u5f55<\/p>\n<p>~\/.cursor-server\u76ee\u5f55\u662f\u5f53\u524d\u7528\u6237\u4e13\u5c5e\u7684Cursor\u8fdc\u7a0b\u670d\u52a1\u7f13\u5b58\u76ee\u5f55&#xff0c;\u5305\u542b\u4e8c\u8fdb\u5236\u6587\u4ef6\u3001\u914d\u7f6e\u6587\u4ef6\u7b49&#xff0c;\u5220\u9664\u540e\u4e0d\u5f71\u54cd\u5176\u4ed6\u7528\u6237&#xff0c;\u53ef\u5f7b\u5e95\u6e05\u7406\u6b8b\u7559&#xff1a;<\/p>\n<h2>\u5220\u9664\u5f53\u524d\u7528\u6237\u7684Cursor\u8fdc\u7a0b\u670d\u52a1\u76ee\u5f55<\/h2>\n<p>rm -rf ~\/.cursor-server<\/p>\n<h2>\u53ef\u9009&#xff1a;\u6e05\u7406Cursor\u672c\u5730\u7f13\u5b58&#xff08;\u907f\u514d\u6b8b\u7559\u914d\u7f6e\u5e72\u6270&#xff09;<\/h2>\n<p>rm -rf ~\/.cursor<\/p>\n<p>\u6b65\u9aa43&#xff1a;\u89c4\u907f\u73af\u5883\u5e72\u6270&#xff08;Conda\u81ea\u52a8\u6fc0\u6d3b&#xff09;<\/p>\n<p>\u4e34\u65f6\u7981\u7528Conda\u81ea\u52a8\u6fc0\u6d3b&#xff0c;\u907f\u514d\u73af\u5883\u53d8\u91cf\u5e72\u6270Cursor\u8fdb\u7a0b\u542f\u52a8&#xff0c;\u4e24\u79cd\u65b9\u5f0f\u53ef\u9009&#xff1a;<\/p>\n<h2>\u65b9\u5f0f1&#xff1a;\u4e34\u65f6\u7981\u7528&#xff08;\u672c\u6b21\u767b\u5f55\u751f\u6548&#xff09;<\/h2>\n<p>conda deactivate<\/p>\n<h2>\u65b9\u5f0f2&#xff1a;\u6c38\u4e45\u7981\u7528&#xff08;\u907f\u514d\u4e0b\u6b21\u767b\u5f55\u81ea\u52a8\u6fc0\u6d3b&#xff0c;\u53ef\u9009&#xff09;<\/h2>\n<p>sed -i.bak \u2018\/conda init\/d\u2019 ~\/.bashrc source ~\/.bashrc<\/p>\n<p>\u6b65\u9aa44&#xff1a;\u91cd\u65b0\u8fde\u63a5Cursor<\/p>\n<li>\n<p>\u5173\u95ed\u672c\u5730Cursor\u6240\u6709\u7a97\u53e3&#xff0c;\u5f7b\u5e95\u9000\u51faCursor&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u91cd\u65b0\u6253\u5f00Cursor&#xff0c;\u6267\u884c\u300cRemote SSH: Connect to Host\u2026\u300d&#xff0c;\u8f93\u5165\u670d\u52a1\u5668\u4fe1\u606f\u548c\u5bc6\u7801&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u6b64\u65f6Cursor\u4f1a\u81ea\u52a8\u91cd\u65b0\u4e0b\u8f7d\u3001\u5b89\u88c5\u9002\u914d\u670d\u52a1\u5668\u7684\u8fdc\u7a0bCLI\u7ec4\u4ef6&#xff0c;\u65e0\u9700\u624b\u52a8\u5e72\u9884&#xff0c;\u7b49\u5f85\u8fde\u63a5\u5b8c\u6210\u5373\u53ef\u3002<\/p>\n<\/li>\n<p>\u6b65\u9aa45&#xff1a;\u8865\u5145\u7cfb\u7edf\u4f9d\u8d56&#xff08;\u53ef\u9009&#xff0c;\u9488\u5bf9\u542f\u52a8\u5931\u8d25\u573a\u666f&#xff09;<\/p>\n<p>\u82e5\u91cd\u65b0\u8fde\u63a5\u540e\u4ecd\u542f\u52a8\u5931\u8d25&#xff0c;\u53ef\u80fd\u662f\u670d\u52a1\u5668\u7f3a\u5c11Cursor\u8fdc\u7a0b\u670d\u52a1\u5fc5\u9700\u7684\u7cfb\u7edf\u4f9d\u8d56&#xff0c;Ubuntu\u7cfb\u7edf\u53ef\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5&#xff1a;<\/p>\n<p>sudo apt update &amp;&amp; sudo apt install -y  libx11-6 libxkbfile1 libsecret-1-0 libnss3  libgbm1 libasound2 libatk1.0-0 libatk-bridge2.0-0<\/p>\n<p>\u56db\u3001\u4f18\u5316\u5efa\u8bae&#xff08;\u907f\u514d\u540e\u7eed\u518d\u6b21\u51fa\u73b0&#xff09;<\/p>\n<li>\n<p>\u8fde\u63a5\u5931\u8d25\u65f6&#xff0c;\u5148\u6e05\u7406\u8fdb\u7a0b\u518d\u91cd\u8fde&#xff1a;\u907f\u514d\u76f4\u63a5\u5173\u95ed\u7a97\u53e3&#xff0c;\u5148\u901a\u8fc7\u7ec8\u7aef\u7ec8\u6b62\u5f53\u524d\u7528\u6237\u7684Cursor\u8fdb\u7a0b&#xff0c;\u518d\u91cd\u65b0\u8fde\u63a5&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u4f18\u5316Cursor\u8fdc\u7a0bSSH\u8bbe\u7f6e&#xff1a;\u5728\u672c\u5730Cursor\u4e2d\u4fee\u6539\u8bbe\u7f6e&#xff0c;\u51cf\u5c11\u8fdb\u7a0b\u5361\u6b7b\u6982\u7387&#xff1a;<\/p>\n<\/li>\n<p>{ \u201cremote.SSH.enableRemoteCommand\u201d: false, \u201cremote.SSH.useLocalServer\u201d: false, \u201cremote.SSH.connectTimeout\u201d: 120, \u201cremote.SSH.showLoginTerminal\u201d: true }<\/p>\n<li>\n<p>\u5408\u7406\u7ba1\u7406Conda\u73af\u5883&#xff1a;\u82e5\u65e0\u9700\u9ed8\u8ba4\u6fc0\u6d3bConda&#xff0c;\u53ef\u6c38\u4e45\u7981\u7528\u81ea\u52a8\u6fc0\u6d3b&#xff0c;\u907f\u514d\u73af\u5883\u5e72\u6270&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u5b9a\u671f\u6e05\u7406\u6b8b\u7559\u8fdb\u7a0b&#xff1a;\u591a\u7528\u6237\u5171\u7528\u670d\u52a1\u5668\u65f6&#xff0c;\u5b9a\u671f\u68c0\u67e5\u5e76\u6e05\u7406\u81ea\u8eab\u7684\u6b8b\u7559\u8fdb\u7a0b&#xff0c;\u907f\u514d\u5360\u7528\u8fc7\u591a\u8d44\u6e90\u3002<\/p>\n<\/li>\n<p>\u4e94\u3001\u603b\u7ed3<\/p>\n<p>\u672c\u6b21Cursor\u8fdc\u7a0b\u8fde\u63a5\u5361\u6b7b\u6545\u969c&#xff0c;\u6838\u5fc3\u539f\u56e0\u662f\u300c\u8fdb\u7a0b\u5806\u79ef&#043;\u73af\u5883\u5e72\u6270\u300d&#xff0c;\u5e76\u975e\u670d\u52a1\u5668\u672c\u8eab\u6216SSH\u914d\u7f6e\u95ee\u9898\u3002\u6392\u67e5\u65f6\u9700\u4f18\u5148\u533a\u5206\u7528\u6237\u8fdb\u7a0b&#xff0c;\u907f\u514d\u5f71\u54cd\u4ed6\u4eba&#xff0c;\u518d\u901a\u8fc7\u201c\u6e05\u7406\u8fdb\u7a0b\u2192\u6e05\u7406\u7f13\u5b58\u2192\u89c4\u907f\u73af\u5883\u5e72\u6270\u2192\u91cd\u65b0\u8fde\u63a5\u201d\u7684\u6d41\u7a0b&#xff0c;\u5373\u53ef\u5feb\u901f\u89e3\u51b3\u95ee\u9898\u3002<\/p>\n<p>\u6b64\u7c7b\u6545\u969c\u5728\u591a\u7528\u6237\u5171\u7528\u670d\u52a1\u5668\u3001\u9891\u7e41\u91cd\u8fde\u3001\u5b58\u5728\u73af\u5883\u53d8\u91cf\u5e72\u6270&#xff08;\u5982Conda\u3001\u865a\u62df\u73af\u5883&#xff09;\u7684\u573a\u666f\u4e2d\u975e\u5e38\u5e38\u89c1&#xff0c;\u638c\u63e1\u672c\u6587\u6392\u67e5\u6d41\u7a0b&#xff0c;\u53ef\u5feb\u901f\u5b9a\u4f4d\u5e76\u89e3\u51b3&#xff0c;\u63d0\u5347\u8fdc\u7a0b\u5f00\u53d1\u6548\u7387\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7cfb\u5217\u6587\u7ae0\u76ee\u5f55<br \/>\n\u3010vs code(cursor) ssh\u8fde\u4e0d\u4e0a\u670d\u52a1\u5668\u3011\u4f46\u662f Terminal \u53ef\u4ee5\u8fde\u4e0a&#xff0c;\u95ee\u9898\u89e3\u51b3 \u2705 \u65b9\u6cd51&#xff0c;\u91cd\u65b0\u8bbe\u7f6e config \u3010vs code(cursor) ssh\u8fde\u4e0d\u4e0a\u670d\u52a1\u5668&#xff08;2&#xff09;\u3011\u4f46\u662f Terminal \u53ef\u4ee5\u8fde\u4e0a&#xff0c;\u95ee\u9898\u89e3\u51b3 \u2705 \u65b9\u6cd52&#xff0c; \u5ef6\u957f ConnectTimeout \u6b64\u5916&#xff0c;\u8fd8\u5c1d\u8bd5\u4e86&#xff08;3&#xff09;\u6539 ssh path&amp;#xff<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[77,43,44],"topic":[],"class_list":["post-86684","post","type-post","status-publish","format-standard","hentry","category-server","tag-ssh","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010vs code(cursor) ssh\u8fde\u4e0d\u4e0a\u670d\u52a1\u5668\uff084\uff09\u3011Cursor\u8fdc\u7a0b\u8fde\u63a5\u670d\u52a1\u5668\u5361\u6b7b\uff08Waiting for server log\uff09\u6545\u969c\u6392\u67e5\u5168\u6d41\u7a0b - \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\/86684.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010vs code(cursor) ssh\u8fde\u4e0d\u4e0a\u670d\u52a1\u5668\uff084\uff09\u3011Cursor\u8fdc\u7a0b\u8fde\u63a5\u670d\u52a1\u5668\u5361\u6b7b\uff08Waiting for server log\uff09\u6545\u969c\u6392\u67e5\u5168\u6d41\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u7cfb\u5217\u6587\u7ae0\u76ee\u5f55 \u3010vs code(cursor) ssh\u8fde\u4e0d\u4e0a\u670d\u52a1\u5668\u3011\u4f46\u662f Terminal \u53ef\u4ee5\u8fde\u4e0a&#xff0c;\u95ee\u9898\u89e3\u51b3 \u2705 \u65b9\u6cd51&#xff0c;\u91cd\u65b0\u8bbe\u7f6e config \u3010vs code(cursor) ssh\u8fde\u4e0d\u4e0a\u670d\u52a1\u5668&#xff08;2&#xff09;\u3011\u4f46\u662f Terminal \u53ef\u4ee5\u8fde\u4e0a&#xff0c;\u95ee\u9898\u89e3\u51b3 \u2705 \u65b9\u6cd52&#xff0c; \u5ef6\u957f ConnectTimeout \u6b64\u5916&#xff0c;\u8fd8\u5c1d\u8bd5\u4e86&#xff08;3&#xff09;\u6539 ssh path&amp;#xff\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/86684.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-28T17:56:32+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"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\/86684.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/86684.html\",\"name\":\"\u3010vs code(cursor) ssh\u8fde\u4e0d\u4e0a\u670d\u52a1\u5668\uff084\uff09\u3011Cursor\u8fdc\u7a0b\u8fde\u63a5\u670d\u52a1\u5668\u5361\u6b7b\uff08Waiting for server log\uff09\u6545\u969c\u6392\u67e5\u5168\u6d41\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-28T17:56:32+00:00\",\"dateModified\":\"2026-07-28T17:56:32+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/86684.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/86684.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/86684.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010vs code(cursor) ssh\u8fde\u4e0d\u4e0a\u670d\u52a1\u5668\uff084\uff09\u3011Cursor\u8fdc\u7a0b\u8fde\u63a5\u670d\u52a1\u5668\u5361\u6b7b\uff08Waiting for server log\uff09\u6545\u969c\u6392\u67e5\u5168\u6d41\u7a0b\"}]},{\"@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":"\u3010vs code(cursor) ssh\u8fde\u4e0d\u4e0a\u670d\u52a1\u5668\uff084\uff09\u3011Cursor\u8fdc\u7a0b\u8fde\u63a5\u670d\u52a1\u5668\u5361\u6b7b\uff08Waiting for server log\uff09\u6545\u969c\u6392\u67e5\u5168\u6d41\u7a0b - \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\/86684.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010vs code(cursor) ssh\u8fde\u4e0d\u4e0a\u670d\u52a1\u5668\uff084\uff09\u3011Cursor\u8fdc\u7a0b\u8fde\u63a5\u670d\u52a1\u5668\u5361\u6b7b\uff08Waiting for server log\uff09\u6545\u969c\u6392\u67e5\u5168\u6d41\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u7cfb\u5217\u6587\u7ae0\u76ee\u5f55 \u3010vs code(cursor) ssh\u8fde\u4e0d\u4e0a\u670d\u52a1\u5668\u3011\u4f46\u662f Terminal \u53ef\u4ee5\u8fde\u4e0a&#xff0c;\u95ee\u9898\u89e3\u51b3 \u2705 \u65b9\u6cd51&#xff0c;\u91cd\u65b0\u8bbe\u7f6e config \u3010vs code(cursor) ssh\u8fde\u4e0d\u4e0a\u670d\u52a1\u5668&#xff08;2&#xff09;\u3011\u4f46\u662f Terminal \u53ef\u4ee5\u8fde\u4e0a&#xff0c;\u95ee\u9898\u89e3\u51b3 \u2705 \u65b9\u6cd52&#xff0c; \u5ef6\u957f ConnectTimeout \u6b64\u5916&#xff0c;\u8fd8\u5c1d\u8bd5\u4e86&#xff08;3&#xff09;\u6539 ssh path&amp;#xff","og_url":"https:\/\/www.wsisp.com\/helps\/86684.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-28T17:56:32+00:00","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\/86684.html","url":"https:\/\/www.wsisp.com\/helps\/86684.html","name":"\u3010vs code(cursor) ssh\u8fde\u4e0d\u4e0a\u670d\u52a1\u5668\uff084\uff09\u3011Cursor\u8fdc\u7a0b\u8fde\u63a5\u670d\u52a1\u5668\u5361\u6b7b\uff08Waiting for server log\uff09\u6545\u969c\u6392\u67e5\u5168\u6d41\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-28T17:56:32+00:00","dateModified":"2026-07-28T17:56:32+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/86684.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/86684.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/86684.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010vs code(cursor) ssh\u8fde\u4e0d\u4e0a\u670d\u52a1\u5668\uff084\uff09\u3011Cursor\u8fdc\u7a0b\u8fde\u63a5\u670d\u52a1\u5668\u5361\u6b7b\uff08Waiting for server log\uff09\u6545\u969c\u6392\u67e5\u5168\u6d41\u7a0b"}]},{"@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\/86684","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=86684"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/86684\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=86684"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=86684"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=86684"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=86684"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}