{"id":73298,"date":"2026-02-07T13:18:14","date_gmt":"2026-02-07T05:18:14","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/73298.html"},"modified":"2026-02-07T13:18:14","modified_gmt":"2026-02-07T05:18:14","slug":"%e6%90%ad%e5%bb%ba%e4%b8%aa%e4%ba%ba%e6%b7%b1%e5%ba%a6%e5%ad%a6%e4%b9%a0%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%88ubuntu24-04vscodessh%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/73298.html","title":{"rendered":"\u642d\u5efa\u4e2a\u4eba\u6df1\u5ea6\u5b66\u4e60\u670d\u52a1\u5668\uff08Ubuntu24.04+VSCode+SSH\uff09"},"content":{"rendered":"<p>\u672c\u6587\u5c06\u5206\u4e3a\u4e09\u4e2a\u9636\u6bb5&#xff1a;\u6309\u987a\u5e8f\u5b8c\u6210\u540e\u53ef\u5b9e\u73b0&#xff1a;\u5728\u672c\u5730\u8bad\u7ec3\u27a1\ufe0f\u5728\u5c40\u57df\u7f51\u8fdc\u7a0b\u8bad\u7ec3\u27a1\ufe0f\u5728\u516c\u7f51\u8fdc\u7a0b\u8bad\u7ec3 <\/p>\n<h4>\u76ee\u5f55<\/h4>\n<ul>\n<li>\n<ul>\n<li>&#x1f31f; \u524d\u8a00<\/li>\n<li>\u4e00\u3001\u5b89\u88c5Ubuntu\u53ca\u57fa\u672c\u6df1\u5ea6\u5b66\u4e60\u73af\u5883\u3010\u5b8c\u6210\u540e\u53ef\u5728\u672c\u5730\u8bad\u7ec3\u3011<\/li>\n<li>\u4e8c\u3001\u914d\u7f6essh\u5e76\u8bbe\u7f6e\u9759\u6001ip\u3010\u5b8c\u6210\u540e\u53ef\u5728\u5c40\u57df\u7f51\u8fdc\u7a0b\u8bad\u7ec3\u3011<\/li>\n<li>\n<ul>\n<li>&#xff08;1&#xff09;\u914d\u7f6essh &#x1f511;<\/li>\n<li>&#xff08;2&#xff09; \u914d\u7f6e\u9759\u6001ip &#x1f310;<\/li>\n<li>&#xff08;3&#xff09;\u53ef\u9009&#xff1a;\u4f7f\u7528RDP\u5171\u4eab\u684c\u9762 &#x1f5b1;\ufe0f<\/li>\n<\/ul>\n<\/li>\n<li>\u4e09\u3001\u5185\u7f51\u7a7f\u900f&#xff08;Zerotier\u3001\u768e\u6708\u8fde&#xff09;\u3010\u5b8c\u6210\u540e\u53ef\u5728\u516c\u7f51\u8fdc\u7a0b\u8bad\u7ec3\u3011<\/li>\n<li>\n<ul>\n<li>&#xff08;1&#xff09; Zerotier\u914d\u7f6e &#x1f30d;<\/li>\n<li>&#xff08;2&#xff09;\u768e\u6708\u8fde\u914d\u7f6e &#x1f319;<\/li>\n<\/ul>\n<\/li>\n<li>\u96441-\u8bad\u7ec3\u65f6&#xff0c;\u7528nvtop\u76d1\u89c6GPU\u72b6\u6001<\/li>\n<li>\u96442-VScode\u914d\u7f6essh\u3001\u514d\u5bc6\u767b\u5f55<\/li>\n<li>\n<ul>\n<li>&#xff08;1&#xff09;VScode\u914d\u7f6essh &#x1f5a5;\ufe0f<\/li>\n<li>&#xff08;2&#xff09;VScode\u514d\u5bc6\u767b\u5f55&#x1f680;&#xff1a;<\/li>\n<\/ul>\n<\/li>\n<li>\u96443-\u7528screen\/nohup\/disown\u907f\u514d\u65ad\u8054\u505c\u6b62\u8bad\u7ec3<\/li>\n<li>\n<ul>\n<li>(1) \u7528screen\u7ba1\u7406\u4f1a\u8bdd &#x1f527;&#xff08;\u63a8\u8350&#xff09;&#xff1a;<\/li>\n<li>(2) \u7528nohup\u4f7f\u7a0b\u5e8f\u76f4\u63a5\u5728\u540e\u53f0\u8fd0\u884c &#x1f4a1;&#xff08;\u4e00\u6b21\u6027&#xff09;&#xff1a;<\/li>\n<li>(3) \u901a\u8fc7disown\u62a2\u6551\u5df2\u8fd0\u884c\u7684\u4efb\u52a1 &#x1f198;&#xff08;\u5e94\u6025&#xff09;&#xff1a;<\/li>\n<\/ul>\n<\/li>\n<li>\u96444-\u7528git\u540c\u6b65\u4ee3\u7801<\/li>\n<li>\n<ul>\n<li>&#xff08;1&#xff09;\u5728Ubuntu\u7cfb\u7edf\u4e0a\u5b89\u88c5Git<\/li>\n<li>&#xff08;2&#xff09;\u57fa\u7840\u914d\u7f6e<\/li>\n<li>&#xff08;3&#xff09;\u4ed3\u5e93\u521d\u59cb\u5316\u4e0e\u57fa\u7840\u64cd\u4f5c<\/li>\n<li>&#xff08;4&#xff09;\u8fde\u63a5\u8fdc\u7a0b\u4ed3\u5e93\u5e76\u63a8\u9001<\/li>\n<li>&#xff08;5&#xff09;\u67e5\u770b\u8bb0\u5f55\u4e0e\u540c\u6b65<\/li>\n<li>&#xff08;6&#xff09;\u5176\u4ed6<\/li>\n<\/ul>\n<\/li>\n<li>&#x1f4da; \u672c\u6587\u53c2\u8003&#xff1a;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<hr \/>\n<h3>&#x1f31f; \u524d\u8a00<\/h3>\n<p>\u6700\u8fd1\u9700\u8981\u642d\u4e2a\u4eba\u670d\u52a1\u5668\u7528\u4e8e\u6df1\u5ea6\u5b66\u4e60&#xff0c;\u7f51\u4e0a\u76f8\u5173\u8d44\u6599\u6bd4\u8f83\u96f6\u6563&#xff0c;\u5728\u6b64\u6574\u7406\u4e0b\u8fd9\u6b21\u642d\u5efa\u7684\u4e3b\u8981\u6b65\u9aa4&#xff0c;\u4ee5\u4fbf\u590d\u73b0\u3002<\/p>\n<hr \/>\n<h3>\u4e00\u3001\u5b89\u88c5Ubuntu\u53ca\u57fa\u672c\u6df1\u5ea6\u5b66\u4e60\u73af\u5883\u3010\u5b8c\u6210\u540e\u53ef\u5728\u672c\u5730\u8bad\u7ec3\u3011<\/h3>\n<p>Ubuntu\u53ca\u57fa\u672c\u6df1\u5ea6\u5b66\u4e60\u73af\u5883\u7684\u5b89\u88c5\u53ef\u4ee5\u53c2\u8003\u6211\u4e4b\u524d\u7684\u6587\u7ae0&#xff1a;\u5728\u79fb\u52a8\u786c\u76d8\u4e0a\u642d\u5efaUbuntu24.04\u6df1\u5ea6\u5b66\u4e60\u73af\u5883&#xff08;Anaconda &#043; CUDA &#043; Pytorch&#xff09;\u3002\u73af\u5883\u914d\u7f6e\u5b8c\u53ef\u8df3\u81f3\u7b2c\u4e8c\u8282\u3002\u5728\u6b64\u6574\u7406\u4e0b\u914d\u7f6e\u65f6\u5e38\u7528\u7684\u51e0\u4e2a\u94fe\u63a5&#xff1a;<\/p>\n<p>&#x1f517; \u5176\u4e2d\u8d44\u6e90\u4e0b\u8f7d\u94fe\u63a5&#xff1a; \u4e0b\u8f7dUbuntu\u955c\u50cf&#xff1a;Download Ubuntu Desktop \u4e0b\u8f7dAnaconda&#xff1a;\u6e05\u534e\u5927\u5b66\u5f00\u6e90\u8f6f\u4ef6\u955c\u50cf\u7ad9 \u4e0b\u8f7d\u663e\u5361\u9a71\u52a8&#xff1a;\u5b98\u65b9\u9a71\u52a8 | NVIDIA \u4e0b\u8f7dCUDA&#xff1a;CUDA Toolkit Archive | NVIDIA Developer \u4e0b\u8f7dcudnn&#xff1a;cudnn-archive<\/p>\n<p>\u2699\ufe0f \u5176\u4e2d\u73af\u5883\u914d\u7f6e&#xff1a; pip\u6362\u6e90&#xff1a;<\/p>\n<p>pip config <span class=\"token builtin class-name\">set<\/span> global.index-url https:\/\/mirrors.aliyun.com\/pypi\/simple<\/p>\n<p>\u4e0b\u8f7d\u5e76\u5b89\u88c5 pytorch&#xff1a;<\/p>\n<p>pip3 <span class=\"token function\">install<\/span> torch torchvision torchaudio &#8211;index-url https:\/\/download.pytorch.org\/whl\/cu129<\/p>\n<hr \/>\n<p>&#x1f4a1; \u53e6&#xff0c;\u8fd9\u6b21\u5b89\u88c5\u53d1\u73b0\u4e86\u51e0\u4e2a\u9700\u8981\u6ce8\u610f\u7684\u70b9&#xff0c;\u5c0f\u7ed3\u4e00\u4e0b&#xff1a;<\/p>\n<li>\n<p>\u5b89\u88c5Ubuntu\u7cfb\u7edf&#xff1a; \u5728\u5b89\u88c5\u9875\u9762\u8054\u7f51\u7684\u8bdd&#xff0c;\u53ef\u4ee5\u76f4\u63a5\u5b89\u88c5\u4e0a\u663e\u5361\u9a71\u52a8&#xff0c;\u540e\u7eed\u5728\u56fe\u5f62\u5316\u754c\u9762\u4e2d\u53ef\u901a\u8fc7\u201c\u9644\u52a0\u9a71\u52a8\u201d\u9009\u62e9\u9a71\u52a8&#xff0c;\u53ef\u4ee5\u7701\u4e86\u624b\u52a8\u5b89\u88c5\u9a71\u52a8\u7684\u9ebb\u70e6&#xff0c;\u4e4b\u524d\u6ca1\u8054\u7f51\u6ca1\u53d1\u73b0\u3002<\/p>\n<p>\u8fd9\u6b21\u6211\u5185\u5b58\u3001\u786c\u76d8\u7684\u914d\u7f6e\u5206\u522b\u662f64G\u30012T&#xff0c;\u5206\u914d\u7684\u7a7a\u95f4\u5982\u4e0b&#xff1a;<\/p>\n<\/li>\n<table>\n<tr>\u6302\u8f7d\u70b9\u5927\u5c0f\u6587\u4ef6\u7cfb\u7edf\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>\/boot\/efi<\/td>\n<td>1.13GB<\/td>\n<td>FAT32<\/td>\n<td>\u9009\u62e9\u6302\u8f7d\u70b9\u540e\u81ea\u52a8\u751f\u6210<\/td>\n<\/tr>\n<tr>\n<td>swap<\/td>\n<td>64 GB<\/td>\n<td>swap<\/td>\n<td>\u4ea4\u6362\u7a7a\u95f4&#xff08;\u865a\u62df\u5185\u5b58&#xff09;&#xff0c;\u5176\u5b9e32G\u4e5f\u591f<\/td>\n<\/tr>\n<tr>\n<td>\/<\/td>\n<td>300 GB<\/td>\n<td>Ext4<\/td>\n<td>\u7cfb\u7edf\u6839\u76ee\u5f55&#xff0c;\u5b89\u88c5\u7cfb\u7edf\u548c\u6838\u5fc3\u8f6f\u4ef6<\/td>\n<\/tr>\n<tr>\n<td>\/var<\/td>\n<td>100 GB<\/td>\n<td>Ext4<\/td>\n<td>\u9694\u79bb\u7cfb\u7edf\u65e5\u5fd7\u3001\u7f13\u5b58\u548c\u672a\u6765\u53ef\u80fd\u7684Docker\u6570\u636e&#xff0c;\u4fdd\u969c\u7cfb\u7edf\u7a33\u5b9a<\/td>\n<\/tr>\n<tr>\n<td>\/tmp<\/td>\n<td>50 GB<\/td>\n<td>Ext4<\/td>\n<td>\u9694\u79bb\u4e34\u65f6\u6587\u4ef6<\/td>\n<\/tr>\n<tr>\n<td>\/home<\/td>\n<td>\u5269\u4f59<\/td>\n<td>Ext4<\/td>\n<td>\u5b58\u653e\u7528\u6237\u6587\u4ef6\u3001\u4ee3\u7801\u548c\u73af\u5883\u914d\u7f6e<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<li>\u5b89\u88c5\u663e\u5361\u9a71\u52a8&#xff1a; \u5982\u679c\u5728\u5b89\u88c5Ubuntu\u65f6\u5df2\u7ecf\u987a\u5e26\u5b89\u88c5\u4e86\u9a71\u52a8&#xff0c;\u76f4\u63a5\u5728\u7ec8\u7aef\u8f93\u5165&#xff1a;nvidia-smi&#xff0c;\u770b\u5230\u7c7b\u4f3c\u4e0b\u56fe\u5373\u4e3a\u6210\u529f&#xff1a;<\/li>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260207051808-6986cb105e563.png\" alt=\"nvidia-smi\u622a\u56fe\" width=\"500\" \/><\/p>\n<li>\u5b89\u88c5CUDA \u8bb0\u5f55&#xff1a;\u8fd9\u6b21\u6211\u88c5cuda\u7684\u65f6\u5019\u9047\u5230\u4e86\u62a5\u9519&#xff1a;\u201cExisting package manager installation of the driver found. It is strongly recommended that you remove this before continuing\u201d&#xff0c;\u8fd9\u662f\u56e0\u4e3a\u6211\u8f93\u5165&#xff1a;nvidia-smi\u540e&#xff0c;\u770b\u5230\u9a71\u52a8\u652f\u6301\u7684\u6700\u5927CUDA\u7248\u672c\u4e3a13.0&#xff0c;\u5c31\u76f4\u63a5\u88c5\u4e8613.0\u7248\u672c\u7684CUDA\u3002\u540e\u6765\u88c512.9\u7684CUDA\u5c31\u80fd\u6b63\u5e38\u5b89\u88c5\u4e86\u3002<\/li>\n<h3>\u4e8c\u3001\u914d\u7f6essh\u5e76\u8bbe\u7f6e\u9759\u6001ip\u3010\u5b8c\u6210\u540e\u53ef\u5728\u5c40\u57df\u7f51\u8fdc\u7a0b\u8bad\u7ec3\u3011<\/h3>\n<h4>&#xff08;1&#xff09;\u914d\u7f6essh &#x1f511;<\/h4>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> openssh-server <span class=\"token comment\"># \u5b89\u88c5shh\u5ba2\u6237\u7aef<\/span><br \/>\n<span class=\"token function\">sudo<\/span> systemctl start <span class=\"token function\">ssh<\/span> <span class=\"token comment\"># \u542f\u52a8OpenSSH\u670d\u52a1\u7aef<\/span><br \/>\n<span class=\"token function\">sudo<\/span> ufw allow <span class=\"token function\">ssh<\/span> <span class=\"token comment\"># \u5141\u8bb8OpenSSH\u670d\u52a1\u5668\u901a\u8fc7\u9632\u706b\u5899<\/span><br \/>\n<span class=\"token function\">sudo<\/span> ufw reload <span class=\"token comment\"># \u91cd\u65b0\u52a0\u8f7d\u9632\u706b\u5899\u89c4\u5219<\/span><\/p>\n<h4>&#xff08;2&#xff09; \u914d\u7f6e\u9759\u6001ip &#x1f310;<\/h4>\n<p>\u684c\u9762\u7248Ubuntu24.04\u6709GUI&#xff0c;\u76f4\u63a5\u5728\u8bbe\u7f6e\u91cc\u914d\u7f6e\u6bd4\u8f83\u7b80\u5355&#xff0c;\u914d\u7f6e\u4e4b\u524d\u8fd8\u6709\u51e0\u4e2a\u524d\u7f6e\u64cd\u4f5c&#xff0c;\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b&#xff1a;<\/p>\n<li>\n<p>\u786e\u8ba4\u7f51\u7edc\u4fe1\u606f&#xff1a;<\/p>\n<p>\u8fd8\u662f\u7528ip a\u67e5\u770b&#xff0c;\u5728\u8f93\u51fa\u7684\u4fe1\u606f\u91cc&#xff0c;\u5148\u627e\u8981\u914d\u7f6e\u7684\u7f51\u5361&#xff08;\u6709\u7ebf\u7f51\u5361\u957f\u5f97\u50cfenp5s0\u8fd9\u6837\u3001\u65e0\u7ebf\u50cfwlp4s0&#xff09;&#xff0c;\u518d\u627e\u7c7b\u4f3c\u8fd9\u6837\u7684\u4e00\u884c&#xff1a;<\/p>\n<p> inet <span class=\"token number\">192.168<\/span>.31.100\/24 brd <span class=\"token number\">192.168<\/span>.31.255 scope global noprefixroute enp5s0<\/p>\n<p>\u8fd9\u91cc\u683c\u5f0f\u4e3ainet ipv4\u5730\u5740\/\u5b50\u7f51\u63a9\u7801 brd \u7f51\u5173 \u2026\u2026 \u5bf9\u5e94\u7684\u7f51\u5361\u3002\u8bb0\u5f55\u4e0b\u6765\u7f51\u5173\u5bf9\u5e94\u7684\u7f51\u6bb5\u548c\u5b50\u7f51\u63a9\u7801&#xff0c;\u56e0\u4e3a\u66f4\u6539ip\u5730\u5740\u53ea\u80fd\u5728\u7f51\u5173\u6240\u5bf9\u5e94\u7684\u7f51\u6bb5\u505a\u64cd\u4f5c&#xff1b;\u4f8b\u5982\u7f51\u5173\u4e3a192.168.31.1&#xff0c;\u5219\u7f51\u6bb5\u4e3a192.168.31.x&#xff0c;\u6545\u9759\u6001ip\u5730\u5740\u53ea\u80fd\u8bbe\u7f6e\u4e3a192.168.31.x&#xff08;\u5982192.168.31.100&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u8fdb\u5165 Settings \u2192 Network\u3002<\/p>\n<\/li>\n<li>\n<p>\u9009\u62e9\u5bf9\u5e94\u8fde\u63a5 \u2192 IPv4 \u2192 \u9009\u62e9 Manual\u3002<\/p>\n<\/li>\n<li>\n<p>\u586b\u5199 IP\u3001\u5b50\u7f51\u63a9\u7801\u3001\u7f51\u5173\u548c DNS&#xff1a;8.8.8.8, 8.8.4.4\u2192 \u4fdd\u5b58\u3002<\/p>\n<\/li>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260207051808-6986cb108dec7.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" width=\"500\" \/><\/p>\n<p>\u5b8c\u6210\u540e\u518d\u7528\u547d\u4ee4ip a\u786e\u8ba4&#xff0c;\u5e94\u5f53\u90fd\u4e3a\u521a\u521a\u8bbe\u7f6e\u7684\u9759\u6001ip&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260207051808-6986cb10c4ab4.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" width=\"600\" \/><\/p>\n<p>&#x1f389; \u81f3\u6b64&#xff0c;\u5c40\u57df\u7f51\u8bbe\u5907\u53ef\u901a\u8fc7\u56fa\u5b9aIP\u8fde\u63a5\u670d\u52a1\u5668&#xff0c;\u800c\u4e0d\u7528\u62c5\u5fc3\u5173\u673a\u540eip\u4f1a\u53d8\u4e86<\/p>\n<h4>&#xff08;3&#xff09;\u53ef\u9009&#xff1a;\u4f7f\u7528RDP\u5171\u4eab\u684c\u9762 &#x1f5b1;\ufe0f<\/h4>\n<p>\u4e3a\u65b9\u4fbf\u8c03\u8bd5&#xff0c;\u53ef\u901a\u8fc7windows\u548cubuntu\u7cfb\u7edf\u5747\u81ea\u5e26\u7684\u529f\u80fd\u5b9e\u73b0\u684c\u9762\u5171\u4eab&#xff0c;\u6ce8\u610fubuntu\u7aef\u4ecd\u9700\u8981\u8fde\u5c4f\u5e55\u6216\u663e\u5361\u6b3a\u9a97\u5668<\/p>\n<li>\n<p>\u542f\u7528\u684c\u9762\u5171\u4eab&#xff1a;<\/p>\n<p>\u8bbe\u7f6e\u2192\u7cfb\u7edf\u2192\u8fdc\u7a0b\u684c\u9762\u2192\u684c\u9762\u5171\u4eab\u2192\u6253\u5f00\u201c\u684c\u9762\u5171\u4eab\u201d\u5f00\u5173\u2192\u8bbe\u7f6e\u201c\u7528\u6237\u540d&#043;\u5bc6\u7801\u201d<\/p>\n<\/li>\n<li>\n<p>\u56fa\u5b9a\u684c\u9762\u5171\u4eab\u5bc6\u7801&#xff1a; \u7528\u547d\u4ee4seahorse\u6253\u5f00\u201c\u5bc6\u7801\u548c\u5bc6\u94a5\u201d\u2192\u9ed8\u8ba4\u5bc6\u94a5\u73af\u2192\u5220\u9664GNOME Remote Desktop RDP credentials\u2192\u70b9\u51fb\u5de6\u4e0a\u65b9\u7684&#034;\u52a0\u53f7&#034;\u6dfb\u52a0\u5bc6\u7801\u5bc6\u94a5\u73af&#xff0c;\u968f\u4fbf\u547d\u540d\u7136\u540e\u4e0d\u8981\u5199\u5bc6\u7801\u76f4\u63a5\u521b\u5efa\u2192\u53f3\u952e\u8be5\u521b\u5efa\u7684\u5bf9\u8c61&#xff0c;\u201c\u8bbe\u7f6e\u4e3a\u9ed8\u8ba4\u201d\u2192\u91cd\u65b0\u8bbe\u7f6e\u201c\u684c\u9762\u5171\u4eab\u201d\u7684\u5bc6\u7801<\/p>\n<\/li>\n<li>\n<p>\u6062\u590d\u9ed8\u8ba4\u5bc6\u94a5\u73af&#xff1a;<\/p>\n<p>\u6253\u5f00\u7ec8\u7aef&#xff0c;\u8f93\u5165 seahorse \u547d\u4ee4\u542f\u52a8\u201c\u5bc6\u7801\u548c\u5bc6\u94a5\u201d\u5e94\u7528\u7a0b\u5e8f&#xff0c;\u628a\u4e4b\u524d\u7684\u9ed8\u8ba4\u7684\u5bc6\u94a5\u73af\u91cd\u65b0\u8bbe\u7f6e\u4e3a\u9ed8\u8ba4<\/p>\n<\/li>\n<li>\n<p>Windows\u8fde\u63a5&#xff1a;<\/p>\n<p>\u4f7f\u7528Windows\u7684\u201c\u8fdc\u7a0b\u684c\u9762\u8fde\u63a5\u201d&#xff0c;\u8f93\u5165&#xff1a;ip**:\u7aef\u53e3\u53f7**\u3001\u7528\u6237\u540d\u3001\u5bc6\u7801\u5373\u53ef\u8fdc\u7a0b\u767b\u5f55\u8be5\u7535\u8111\u3002<\/p>\n<p>\u7aef\u53e3\u53f7\u5728ubuntu\u201c\u684c\u9762\u5171\u4eab\u201d\u7684\u8bbe\u7f6e\u9875\u9762\u67e5\u770b&#xff0c;\u9ed8\u8ba4\u4e3a3390<\/p>\n<\/li>\n<h3>\u4e09\u3001\u5185\u7f51\u7a7f\u900f&#xff08;Zerotier\u3001\u768e\u6708\u8fde&#xff09;\u3010\u5b8c\u6210\u540e\u53ef\u5728\u516c\u7f51\u8fdc\u7a0b\u8bad\u7ec3\u3011<\/h3>\n<p>Zerotier\u514d\u8d39&#xff0c;\u768e\u6708\u8fde\u4ed8\u8d39&#xff0c;\u7c7b\u4f3c\u7684\u670d\u52a1\u5546\u8fd8\u6709\u82b1\u751f\u58f3\u4e4b\u7c7b&#xff0c;\u6309\u9700\u9009\u62e9&#xff0c;\u8fd9\u6b21\u6211\u9009\u4e86\u8fd9\u4fe9&#xff0c;\u7b80\u8981\u4e00\u4e0b\u6f14\u793a\u4f7f\u7528\u6b65\u9aa4&#xff1a;<\/p>\n<h4>&#xff08;1&#xff09; Zerotier\u914d\u7f6e &#x1f30d;<\/h4>\n<p>\u6240\u6709\u8bbe\u5907\u90fd\u9700\u8981\u5b89\u88c5&#xff1a;https:\/\/www.zerotier.com\/download\/<\/p>\n<li>\u521b\u5efa\u7f51\u7edc&#xff1a;\u4e3b\u63a7\u8bbe\u5907\u6ce8\u518c\u5e76\u8fdb\u5165\u5de5\u4f5c\u53f0&#xff1a;https:\/\/my.zerotier.com\/network \u5728\u5de5\u4f5c\u53f0\u65b0\u5efa\u7f51\u7edc\u540e&#xff0c;\u7ba1\u7406\u9875\u9762\u5982\u56fe&#xff0c;\u8bb0\u4e0bNetwork ID&#xff0c;\u4e3b\u63a7\u8bbe\u5907\u548c\u670d\u52a1\u5668\u90fd\u8981\u52a0\u5165&#xff1a;<\/li>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260207051809-6986cb1141415.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" width=\"650\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260207051810-6986cb126a553.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" width=\"400\" \/><\/p>\n<li>\u670d\u52a1\u5668\u5b89\u88c5\u5e76\u52a0\u5165\u7f51\u7edc&#xff1a;<\/li>\n<p>\u4f9d\u6b21\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4&#xff0c;\u9996\u5148\u5b89\u88c5&#xff1a;<\/p>\n<p><span class=\"token function\">curl<\/span> -s https:\/\/install.zerotier.com <span class=\"token operator\">|<\/span> <span class=\"token function\">sudo<\/span> <span class=\"token function\">bash<\/span><\/p>\n<p>\u6dfb\u52a0\u81ea\u542f&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> systemctl <span class=\"token builtin class-name\">enable<\/span> zerotier-one.service<\/p>\n<p>\u542f\u52a8\u670d\u52a1&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> systemctl start zerotier-one.service<\/p>\n<p>\u52a0\u5165\u7f51\u7edc&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> zerotier-cli <span class=\"token function\">join<\/span> <span class=\"token operator\">&lt;<\/span>Zerotier\u63a7\u5236\u53f0\u663e\u793a\u7684Network ID<span class=\"token operator\">&gt;<\/span><\/p>\n<p>\u53e6&#xff0c;\u9000\u51fa\u7f51\u7edc\u547d\u4ee4\u662f&#xff1a;sudo zerotier-cli leave<\/p>\n<h4>&#xff08;2&#xff09;\u768e\u6708\u8fde\u914d\u7f6e &#x1f319;<\/h4>\n<p>\u5b98\u7f51&#xff1a;https:\/\/www.natpierce.cn\/<\/p>\n<p>Windows\u4e0a\u7684\u5b89\u88c5\u5f88\u7b80\u5355&#xff0c;\u76f4\u63a5\u8fd0\u884c.exe\u5373\u53ef&#xff0c;Linux\u4e0a\u5b89\u88c5\u7a0d\u8d39\u529f\u592b&#xff0c;\u6b65\u9aa4\u5982\u4e0b&#xff1a;<\/p>\n<li>\u521b\u5efa\u6587\u4ef6\u5939\/opt\/natpierce<\/li>\n<p>sudo mkdir -p \/opt\/natpierce<\/p>\n<li>\n<p>\u5c06\u89e3\u538b\u540e\u7684\u540d\u4e3a natpierce\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6&#xff08;\u800c\u975e\u6587\u4ef6\u5939&#xff09;\u79fb\u52a8\u5230\/opt\/natpierce<\/p>\n<p>\u5982\u679c\u5bf9\u4e8exxx\u76ee\u5f55\u7684\u6743\u9650\u4e0d\u591f&#xff0c;\u7528chmod\u6307\u4ee4\u63d0\u5347\u6743\u9650&#xff0c;\u5982&#xff1a;<\/p>\n<p>   <span class=\"token function\">sudo<\/span> <span class=\"token function\">chmod<\/span>  <span class=\"token number\">777<\/span> \/var\/home\/xxx<\/p>\n<p>\u5982\u679c\u662f\u4fee\u6539\u6587\u4ef6\u5939\u53ca\u5b50\u6587\u4ef6\u5939\u6743\u9650&#xff0c;\u5728chmod\u540e\u52a0&#xff1a;-R<\/p>\n<\/li>\n<li>\n<p>\u521b\u5efaservice\u914d\u7f6e<\/p>\n<\/li>\n<p>sudo gedit \/etc\/systemd\/system\/natpierce.service<\/p>\n<p>\u5199\u5165\u4ee5\u4e0b\u914d\u7f6e\u5185\u5bb9&#xff1a;<\/p>\n<p>[Unit]<br \/>\nDescription&#061;Natpierce Tunnel Service<br \/>\nAfter&#061;network-online.target<br \/>\nWants&#061;network-online.target<\/p>\n<p>[Service]<br \/>\nWorkingDirectory&#061;\/opt\/natpierce<br \/>\nExecStart&#061;\/opt\/natpierce\/natpierce<br \/>\nRestart&#061;always<br \/>\nRestartSec&#061;5<br \/>\nUser&#061;root<br \/>\n# \u65e5\u5fd7\u76f4\u63a5\u8d70 systemd journal<br \/>\nStandardOutput&#061;journal<br \/>\nStandardError&#061;journal<\/p>\n<p>[Install]<br \/>\nWantedBy&#061;multi-user.target<\/p>\n<li>\u91cd\u65b0\u52a0\u8f7d systemd<\/li>\n<p>sudo systemctl daemon-reload<\/p>\n<li>\u542f\u52a8\u5e76\u8bbe\u4e3a\u5f00\u673a\u81ea\u542f<\/li>\n<p>sudo systemctl enable &#8211;now natpierce.service<\/p>\n<li>\u67e5\u770b\u8fd0\u884c\u72b6\u6001 \/ \u65e5\u5fd7<\/li>\n<p>systemctl status natpierce.service<br \/>\njournalctl -u natpierce.service -f<\/p>\n<p>\u8f93\u51fa\u4e2d\u80fd\u770b\u5230\u768e\u6708\u8fde\u5c31\u6210\u4e86<\/p>\n<h3>\u96441-\u8bad\u7ec3\u65f6&#xff0c;\u7528nvtop\u76d1\u89c6GPU\u72b6\u6001<\/h3>\n<p>Ubuntu\u81ea\u5e26\u7cfb\u7edf\u76d1\u89c6\u5668\u6ca1\u6709GPU\u76d1\u63a7&#xff0c;\u6545\u91c7\u7528\u5e94\u7528nvtop\u6765\u5b9e\u73b0&#xff0c;\u76f4\u63a5\u5b89\u88c5&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> nvtop<\/p>\n<p>\u70b9\u51fb\u8fd0\u884c\u5373\u53ef&#xff0c;\u8fd0\u884c\u6548\u679c\u5982\u4e0b&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260207051811-6986cb13f1bcf.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" width=\"500\" \/><\/p>\n<h3>\u96442-VScode\u914d\u7f6essh\u3001\u514d\u5bc6\u767b\u5f55<\/h3>\n<h4>&#xff08;1&#xff09;VScode\u914d\u7f6essh &#x1f5a5;\ufe0f<\/h4>\n<li>\n<p>\u5b89\u88c5\u63d2\u4ef6&#xff1a; \u5728vscode\u4e2d\u641c\u7d22\u5e76\u5b89\u88c5\u63d2\u4ef6&#xff1a;remote-ssh\u3001python\u3001SFTP&#xff0c;\u5206\u522b\u7528\u4e8essh\u3001\u9009\u89e3\u91ca\u5668\u3001\u4f20\u6587\u4ef6&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260207051812-6986cb148d240.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" width=\"500\" \/><\/p>\n<\/li>\n<li>\n<p>\u914d\u7f6eSSH&#xff1a; \u8fde\u63a5\u670d\u52a1\u5668&#xff1a;\u6309Ctrl&#043;P&#xff0c;\u8f93\u5165ssh -p 22 &lt;\u670d\u52a1\u5668\u7528\u6237\u540d&gt;&#064;&lt;ip&gt;&#xff0c;\u56de\u8f66\u9009\u62e9\u914d\u7f6e\u6587\u4ef6 &#xff08;\u6216\u70b9\u51fb\u8fdc\u7a0b\u56fe\u6807\u4e2d\u7684\u914d\u7f6e\u6309\u94ae&#xff0c;\u9009\u62e9\u5e76\u914d\u7f6econfig\u6587\u4ef6&#xff09;&#xff0c;\u5176\u4e2d&#xff1a; Host&#xff1a;\u670d\u52a1\u5668\u540d&#xff0c;\u9ed8\u8ba4\u540cip\u5730\u5740 HostName&#xff1a;\u670d\u52a1\u5668\u7684\u5730\u5740 User&#xff1a;\u767b\u5f55\u7684\u7528\u6237\u540d\u79f0 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260207051812-6986cb14d6911.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" width=\"500\" \/><\/p>\n<\/li>\n<h4>&#xff08;2&#xff09;VScode\u514d\u5bc6\u767b\u5f55&#x1f680;&#xff1a;<\/h4>\n<p>\u5728windows\u7aef&#xff0c;\u8fdb\u5230\u76ee\u5f55&#xff1a;C:\\\\Users\\\\&lt;\u4f60\u7684\u7528\u6237\u540d&gt;\\\\.ssh\u4e0b\u67e5\u770b\u4f60\u7684\u5bc6\u94a5&#xff08;\u516c\u94a5&#xff09;&#xff1a;id_rsa.pub&#xff0c;\u6ca1\u6709\u5219\u7528\u547d\u4ee4\u751f\u6210&#xff0c;\u56de\u8f66\u5230\u5e95\u5373\u53ef&#xff1a;<\/p>\n<p>ssh-keygen <\/p>\n<p>\u670d\u52a1\u5668\u4e2d&#xff0c;\u9700\u8981\u5c06\u516c\u94a5\u5185\u5bb9\u6dfb\u52a0\u5230~\/.ssh\/authorized_keys&#xff0c;\u6309\u987a\u5e8f\u8f93\u5165&#xff1a;<\/p>\n<p><span class=\"token builtin class-name\">cd<\/span> ~ <span class=\"token operator\">&amp;&amp;<\/span> <span class=\"token function\">mkdir<\/span> -p .ssh <span class=\"token operator\">&amp;&amp;<\/span> <span class=\"token builtin class-name\">cd<\/span> .ssh<\/p>\n<p>gedit authorized_keys<\/p>\n<p>\u5728\u6253\u5f00\u7684\u7a97\u53e3\u8f93\u5165windows\u5bc6\u94a5\u4e2d\u5168\u90e8\u5185\u5bb9&#xff08;\u2026\/.ssh\/id_rsa.pub\u4e2d\u7684\u5185\u5bb9&#xff09;&#xff0c;\u4fdd\u5b58\u540e\u63d0\u5347\u6743\u9650&#xff1a;<\/p>\n<p><span class=\"token function\">chmod<\/span> <span class=\"token number\">600<\/span> authorized_keys <span class=\"token comment\"># \u8bbe\u7f6e\u5bc6\u94a5\u6587\u4ef6\u4ec5\u5bf9\u6240\u6709\u8005\u53ef\u8bfb\u5199<\/span><br \/>\n<span class=\"token function\">chmod<\/span> <span class=\"token number\">700<\/span> ~\/.ssh  <span class=\"token comment\"># \u8bbe\u7f6e.ssh\u76ee\u5f55\u4ec5\u5bf9\u6240\u6709\u8005\u53ef\u8bfb\u3001\u5199\u3001\u6267\u884c<\/span><\/p>\n<hr \/>\n<p>\u53e6&#xff0c;\u5728\u9879\u76ee\u76ee\u5f55\u4e0b\u7684.vscode\u27a1\ufe0fsettings.json\u4e2d&#xff0c;\u53ef\u914d\u7f6e\u9ed8\u8ba4\u89e3\u91ca\u5668&#xff0c;\u5982&#xff1a;<\/p>\n<p><span class=\"token string-property property\">&#034;python.defaultInterpreterPath&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;~\/anaconda3\/env\/deim\/bin\/python&#034;<\/span><\/p>\n<h3>\u96443-\u7528screen\/nohup\/disown\u907f\u514d\u65ad\u8054\u505c\u6b62\u8bad\u7ec3<\/h3>\n<h4>(1) \u7528screen\u7ba1\u7406\u4f1a\u8bdd &#x1f527;&#xff08;\u63a8\u8350&#xff09;&#xff1a;<\/h4>\n<p>\u7075\u6d3b\u4f7f\u7528 screen \u53ef\u4ee5\u907f\u514d\u56e0\u8fde\u63a5\u65ad\u5f00\u800c\u4e22\u5931\u8fdb\u7a0b&#xff0c;\u4e5f\u53ef\u7528\u4e8e\u7ba1\u7406\u591a\u4e2a\u4efb\u52a1\u3002\u5bf9\u52a8\u8f84\u534a\u5929&#043;\u7684\u6a21\u578b\u8bad\u7ec3\u5f88\u6709\u7528\u3002<\/p>\n<li>\u5b89\u88c5&#xff1a; \u90e8\u5206Linux\u7cfb\u7edf\u4f1a\u9884\u88c5Screen&#xff0c;\u53ef\u4ee5\u5148\u68c0\u67e5\u4e00\u4e0b&#xff1a;<span class=\"token function\">screen<\/span> &#8211;version<br \/>\n \u82e5\u672a\u5b89\u88c5&#xff0c;\u5b89\u88c5&#xff1a;<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> update <span class=\"token operator\">&amp;&amp;<\/span> <span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> <span class=\"token function\">screen<\/span>\n <\/li>\n<hr \/>\n<li>\n<p>\u57fa\u672c\u547d\u4ee4&#xff1a; \u521b\u5efascreen\u5e76\u547d\u540d&#xff08;\u4f8b\u5982mytrain&#xff09;&#xff1a;<\/p>\n<p> <span class=\"token function\">screen<\/span> -S mytrain<\/p>\n<p>\u7ec8\u7aef\u754c\u9762\u4f1a\u5237\u65b0&#xff0c;\u8868\u793a\u4f60\u5df2\u8fdb\u5165\u65b0\u7684screen\u4f1a\u8bdd\u3002 \u67e5\u770b\u6240\u6709 screen \u4f1a\u8bdd&#xff0c;\u6ce8\u610f\u662f-ls\u4e0d\u662fls&#xff1a;<\/p>\n<p> <span class=\"token function\">screen<\/span> -ls<\/p>\n<p>\u793a\u4f8b\u8f93\u51fa&#xff08;Attached\u8868\u793a\u4f1a\u8bdd\u4ecd\u5728\u4f7f\u7528\u4e2d&#xff09;&#xff1a;<\/p>\n<p> There is a <span class=\"token function\">screen<\/span> on:<br \/>\n             <span class=\"token number\">60366<\/span>.mytrain   <span class=\"token punctuation\">(<\/span><span class=\"token number\">2026<\/span>\u5e7401\u670823\u65e5 <span class=\"token number\">17<\/span>\u65f612\u520614\u79d2<span class=\"token punctuation\">)<\/span>   <span class=\"token punctuation\">(<\/span>Attached<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token number\">1<\/span> Socket <span class=\"token keyword\">in<\/span> \/run\/screen\/S-6.<\/p>\n<p>\u4e0d\u540c\u4e8e\u666e\u901a\u4f1a\u8bdd&#xff0c;screen\u4f1a\u8bdd\u7684\u5feb\u6377\u952e\u662f&#xff1a; 1\ufe0f\u20e3 \u6309Ctrl &#043; D\u6765\u9000\u51fa\u5f53\u524d\u4f1a\u8bdd&#xff08;\u6216\u5728\u4f1a\u8bdd\u4e2d\u8f93\u5165exit&#xff09; \u53e6&#xff0c;\u5728\u4f1a\u8bdd\u5916\u5173\u95ed\u4f1a\u8bdd\u7684\u6307\u4ee4\u662f&#xff1a;screen -X -S mytrain quit 2\ufe0f\u20e3 \u5148\u6309 Ctrl &#043; A&#xff0c;\u518d\u6309 D \u6765\u8131\u79bb\u5f53\u524d\u4f1a\u8bdd&#xff08;\u72b6\u6001\u4f1a\u53d8\u4e3aDetach&#xff09;<\/p>\n<p>\u5176\u4ed6\u7a97\u53e3\u547d\u4ee4&#xff08;\u4e0d\u5e38\u7528&#xff09;&#xff1a; 3\ufe0f\u20e3 \u5148\u6309 Ctrl &#043; A&#xff0c;\u518d\u6309 C \u6765\u521b\u5efa\u65b0\u7a97\u53e3 4\ufe0f\u20e3 \u5148\u6309 Ctrl &#043; A&#xff0c;\u518d\u6309 P \u6765\u5207\u6362\u4e0a\u4e00\u4e2a\u7a97\u53e3 5\ufe0f\u20e3 \u5148\u6309 Ctrl &#043; A&#xff0c;\u518d\u6309 N \u6765\u5207\u6362\u4e0b\u4e00\u4e2a\u7a97\u53e3 3\ufe0f\u20e3 \u5148\u6309 Ctrl &#043; A&#xff0c;\u518d\u6309 &#034; \u6765\u67e5\u770b\u6240\u6709\u7a97\u53e3<\/p>\n<p>\u4f8b\u5982\u6309Ctrl &#043; D\u9000\u51fa\u4f1a\u8bdd\u540e&#xff0c;\u518d\u7528screen -ls\u4f1a\u770b\u5230\u8f93\u51fa&#xff1a;No Sockets found in \/run\/&#8230; \u800c\u5148\u6309 Ctrl &#043; A&#xff0c;\u518d\u6309 D \u8131\u79bb\u4f1a\u8bdd\u540e&#xff0c;\u7528screen -ls\u4f1a\u770b\u5230\u8f93\u51fa&#xff1a;<\/p>\n<p> There is a <span class=\"token function\">screen<\/span> on:<br \/>\n             <span class=\"token number\">60366<\/span>.mytrain   <span class=\"token punctuation\">(<\/span><span class=\"token number\">2026<\/span>\u5e7401\u670823\u65e5 <span class=\"token number\">17<\/span>\u65f612\u520614\u79d2<span class=\"token punctuation\">)<\/span>   <span class=\"token punctuation\">(<\/span>Detach<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token number\">1<\/span> Socket <span class=\"token keyword\">in<\/span> \/run\/screen\/S-6.<\/p>\n<p>\u91cd\u65b0\u8fde\u63a5\u4f1a\u8bdd&#xff0c;\u770b\u60c5\u51b5\u7075\u6d3b\u4f7f\u7528&#xff0c;ID\u5fd8\u4e86\u7528screen -ls\u67e5\u770b&#xff1a;<\/p>\n<\/li>\n<table>\n<tr>\u547d\u4ee4\u683c\u5f0f\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>screen -r mytrain<\/td>\n<td>\u76f4\u63a5\u8fde\u4f1a\u8bdd\u540d\u79f0\u200b<\/td>\n<\/tr>\n<tr>\n<td>screen -r 12345<\/td>\n<td>\u5f53\u4f1a\u8bdd\u540d\u79f0\u53ef\u80fd\u91cd\u590d\u65f6&#xff0c;\u7528PID\u8fde\u63a5\u6700\u53ef\u9760<\/td>\n<\/tr>\n<tr>\n<td>screen -r 12345.mytrain<\/td>\n<td>\u5b8c\u6574\u4f1a\u8bddID&#xff0c;\u6700\u4e25\u8c28\u200b<\/td>\n<\/tr>\n<tr>\n<td>screen -d -r mytrain<\/td>\n<td>\u5f3a\u5236\u63a5\u7ba1\u4f1a\u8bdd&#xff0c;\u7528\u4e8e\u5904\u4e8eAttached\u72b6\u6001\u7684\u4f1a\u8bdd&#xff0c;\u4f46\u4f60\u8fd8\u662f\u60f3\u6324\u8fdb\u53bb&#xff08;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>(2) \u7528nohup\u4f7f\u7a0b\u5e8f\u76f4\u63a5\u5728\u540e\u53f0\u8fd0\u884c &#x1f4a1;&#xff08;\u4e00\u6b21\u6027&#xff09;&#xff1a;<\/h4>\n<p>\u539f\u7406&#xff1a;\u5728\u8fdb\u7a0b\u542f\u52a8\u65f6\u5373\u8ba9\u5176\u5ffd\u7565SIGHUP\u4fe1\u53f7&#xff0c;\u5e76\u7acb\u5373\u653e\u5165\u540e\u53f0\u3002<\/p>\n<p>\u5f53\u8ba1\u5212\u542f\u52a8\u4e00\u4e2a\u65e0\u9700\u4ea4\u4e92\u3001\u957f\u65f6\u95f4\u8fd0\u884c\u7684\u4efb\u52a1\u65f6&#xff0c;\u8fd9\u662f\u6700\u6807\u51c6\u3001\u6700\u7b80\u6d01\u7684\u65b9\u6cd5&#xff0c;\u5b89\u5168\u7528\u6cd5&#xff1a;<\/p>\n<p><span class=\"token function\">nohup<\/span> python train.py <span class=\"token operator\">&gt;<\/span> training.log <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span><span class=\"token file-descriptor important\">&amp;1<\/span> <span class=\"token operator\">&amp;<\/span><\/p>\n<p>\u7279\u70b9&#xff1a;\u7a33\u5b9a\u6027\u9ad8\u3002\u6240\u6709\u8f93\u51fa\u88ab\u59a5\u5584\u4fdd\u5b58&#xff0c;\u5373\u4f7f\u7ec8\u7aef\u5173\u95ed\u4e5f\u65e0\u5f71\u54cd\u3002 &#xff08;\u5728\u542f\u52a8\u65f6\u91cd\u5b9a\u5411\u6807\u51c6\u8f93\u51fa\u548c\u6807\u51c6\u9519\u8bef\u5230\u5f53\u524d\u76ee\u5f55\u4e0b\u7684training.log&#xff0c;\u907f\u514d\u56e0\u7ec8\u7aef\u5173\u95ed\u5bfc\u81f4\u7684\u5199\u5165\u9519\u8bef&#xff09;<\/p>\n<p>\u53e6&#xff0c;\u5982\u679c\u4f60\u76f8\u4fe1\u4f60\u7684\u7a0b\u5e8f\u4e0d\u4f1a\u62a5\u9519\/\u8b66\u544a&#xff0c;\u7b80\u6613\u7528\u6cd5\u200b\u662f&#xff1a;<\/p>\n<p><span class=\"token function\">nohup<\/span> python train.py <span class=\"token operator\">&amp;<\/span><\/p>\n<p>\u7279\u70b9&#xff1a;\u26a0\ufe0f\u7a33\u5b9a\u6027\u8f83\u4f4e&#xff01;\u5982\u679c\u8fdb\u7a0b\u5411\u6807\u51c6\u9519\u8bef\u8f93\u51fa\u4fe1\u606f&#xff08;\u5982\u62a5\u9519\u3001\u8b66\u544a&#xff09;&#xff0c;\u800c\u7ec8\u7aef\u5df2\u5173\u95ed&#xff0c;\u8fdb\u7a0b\u53ef\u80fd\u4f1a\u56e0\u5199\u5165\u5931\u8d25\u800c\u6302\u8d77\u6216\u5d29\u6e83\u3002<\/p>\n<hr \/>\n<p>\u67e5\u627e\u6240\u6709nohup\u8fdb\u7a0b&#xff1a;<\/p>\n<p><span class=\"token function\">ps<\/span> -ef <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> <span class=\"token function\">nohup<\/span><\/p>\n<p>\u7ec8\u6b62\u8fdb\u7a0b&#xff08;\u901a\u8fc7PID&#xff09;&#xff0c;\u8fdb\u7a0b\u65e0\u54cd\u5e94\u65f6\u7528kill -9 12345&#xff1a;<\/p>\n<p><span class=\"token function\">kill<\/span> <span class=\"token number\">12345<\/span><\/p>\n<p>\u5b9e\u65f6\u67e5\u770b\u8bad\u7ec3\u65e5\u5fd7&#xff1a;<\/p>\n<p><span class=\"token function\">tail<\/span> -f training.log<\/p>\n<h4>(3) \u901a\u8fc7disown\u62a2\u6551\u5df2\u8fd0\u884c\u7684\u4efb\u52a1 &#x1f198;&#xff08;\u5e94\u6025&#xff09;&#xff1a;<\/h4>\n<p>\u5f53\u5fd8\u8bb0\u4f7f\u7528\u540e\u53f0\u65b9\u5f0f\u542f\u52a8&#xff0c;\u800c\u4e00\u4e2a\u91cd\u8981\u7684\u4efb\u52a1\u5df2\u7ecf\u5728\u524d\u53f0\u8fd0\u884c\u65f6&#xff0c;\u53ef\u901a\u8fc7disown\u5c06\u5df2\u7ecf\u5728\u524d\u53f0\u8fd0\u884c\u7684\u8fdb\u7a0b\u201c\u5265\u79bb\u201d\u51fa\u6765&#xff0c;\u4f7f\u5176\u514d\u4e8e\u968f\u7ec8\u7aef\u5173\u95ed\u800c\u7ec8\u6b62\u3002 \u64cd\u4f5c\u6b65\u9aa4&#xff1a;<\/p>\n<li>\u6309\u4e0b Ctrl &#043; Z\u6302\u8d77\u524d\u53f0\u4efb\u52a1\u3002<\/li>\n<li>\u8f93\u5165 bg&#xff0c;\u5c06\u4efb\u52a1\u5728\u540e\u53f0\u7ee7\u7eed\u8fd0\u884c\u3002<\/li>\n<li>\u8f93\u5165 disown -h&#xff0c;\u5c06\u4efb\u52a1\u4eceShell\u4f5c\u4e1a\u8868\u4e2d\u79fb\u9664&#xff0c;\u5e76\u4f7f\u5176\u5ffd\u7565\u7ec8\u7aef\u5173\u95ed\u65f6\u53d1\u51fa\u7684SIGHUP\u4fe1\u53f7\u3002 \u539f\u7406&#xff1a;\u6682\u505c\u8fdb\u7a0b \u2192 \u540e\u53f0\u6062\u590d \u2192 \u89e3\u9664\u7ec8\u7aef\u5173\u8054\u3002 \u26a0\ufe0f\u6ce8\u610f&#xff01;\u8be5\u65b9\u6cd5\u4ecd\u53ef\u80fd\u4f1a\u5c1d\u8bd5\u5411\u5df2\u5173\u95ed\u7684\u7ec8\u7aef\u8f93\u51fa&#xff0c;\u5bfc\u81f4\u95ee\u9898&#xff08;\u5982\u8fdb\u7a0b\u88ab\u6302\u8d77&#xff09;\u3002\u662f\u4e00\u79cd\u6709\u6548\u7684&#034;\u6551\u6025&#034;\u65b9\u6cd5&#xff0c;\u4f46\u5982\u679c\u662f\u8ba1\u5212\u4e2d\u7684\u4e00\u6b21\u6027\u8bad\u7ec3\u811a\u672c&#xff0c;\u66f4\u63a8\u8350\u4f7f\u7528nohup&#xff0c;\u82e5\u662f\u9700\u8981\u4ea4\u4e92\u3001\u89c2\u5bdf\u65e5\u5fd7\u7684\u957f\u65f6\u95f4\u4efb\u52a1&#xff0c;\u66f4\u63a8\u8350\u7528screen\/tmux\u3002<\/li>\n<h3>\u96444-\u7528git\u540c\u6b65\u4ee3\u7801<\/h3>\n<p>\u5355\u72ec\u4f20\u6587\u4ef6\u5939\u7684\u8bdd&#xff0c;\u53ef\u7528rsync&#xff1a;<\/p>\n<p><span class=\"token function\">rsync<\/span> -r \/home\/sourcedir service&#064;192.168.1.100:\/home\/targetdidr\/<\/p>\n<h4>&#xff08;1&#xff09;\u5728Ubuntu\u7cfb\u7edf\u4e0a\u5b89\u88c5Git<\/h4>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt-get<\/span> <span class=\"token function\">install<\/span> <span class=\"token function\">git<\/span><\/p>\n<hr \/>\n<h4>&#xff08;2&#xff09;\u57fa\u7840\u914d\u7f6e<\/h4>\n<p>\u914d\u7f6e\u5168\u5c40\u7528\u6237\u4fe1\u606f&#xff08;\u63d0\u4ea4\u8bb0\u5f55\u4f1a\u663e\u793a\u8fd9\u4e9b\u4fe1\u606f&#xff09;&#xff1a;<\/p>\n<p>$ <span class=\"token function\">git<\/span> config &#8211;global user.name \u4f60\u7684\u7528\u6237\u540d<br \/>\n$ <span class=\"token function\">git<\/span> config &#8211;global user.email \u4f60\u7684\u90ae\u7bb1<\/p>\n<p>\u67e5\u770b\u5f53\u524d\u6240\u6709\u914d\u7f6e\u4fe1\u606f&#xff1a;<\/p>\n<p><span class=\"token function\">git<\/span> config &#8211;list<\/p>\n<h4>&#xff08;3&#xff09;\u4ed3\u5e93\u521d\u59cb\u5316\u4e0e\u57fa\u7840\u64cd\u4f5c<\/h4>\n<p>\u5728\u9879\u76ee\u6839\u76ee\u5f55\u521d\u59cb\u5316Git\u4ed3\u5e93&#xff1a;<\/p>\n<p><span class=\"token function\">git<\/span> init<\/p>\n<p>Git\u6587\u4ef6\u63d0\u4ea4\u5206\u4e3a\u4e09\u4e2a\u9636\u6bb5&#xff1a;<\/p>\n<li>\u5de5\u4f5c\u533a\u200b \u2192 \u6682\u5b58\u533a&#xff1a;<\/li>\n<p><span class=\"token function\">git<\/span> <span class=\"token function\">add<\/span> filename<\/p>\n<p>\u66f4\u5e38\u7528\u7684\u662f&#xff0c;\u4e00\u6b21\u6027\u6dfb\u52a0\u6240\u6709\u53d8\u66f4\u6587\u4ef6\u5230\u6682\u5b58\u533a&#xff1a;<\/p>\n<p><span class=\"token function\">git<\/span> <span class=\"token function\">add<\/span> <span class=\"token builtin class-name\">.<\/span><\/p>\n<li>\u6682\u5b58\u533a\u200b \u2192 \u672c\u5730\u4ed3\u5e93&#xff1a;<\/li>\n<p><span class=\"token function\">git<\/span> commit -m <span class=\"token string\">&#039;\u6ce8\u91ca&#039;<\/span><\/p>\n<li>\u672c\u5730\u4ed3\u5e93\u200b \u2192 \u8fdc\u7a0b\u4ed3\u5e93&#xff1a;<\/li>\n<p><span class=\"token function\">git<\/span> push<\/p>\n<h4>&#xff08;4&#xff09;\u8fde\u63a5\u8fdc\u7a0b\u4ed3\u5e93\u5e76\u63a8\u9001<\/h4>\n<p>\u9996\u6b21\u5173\u8054\u8fdc\u7a0b\u4ed3\u5e93&#xff08;\u5982Gitee\u3001GitHub&#xff09;&#xff1a;<\/p>\n<p><span class=\"token function\">git<\/span> remote <span class=\"token function\">add<\/span> origin <span class=\"token operator\">&lt;<\/span>\u4f60\u7684\u4ed3\u5e93URL<span class=\"token operator\">&gt;<\/span><\/p>\n<p>\u9996\u6b21\u63a8\u9001\u4ee3\u7801\u5e76\u8bbe\u7f6e\u4e0a\u6e38\u5206\u652f&#xff1a;&#xff08;\u4e3b\u5206\u652f\u540d\u6839\u636e\u4f60\u7684\u8fdc\u7a0b\u4ed3\u5e93\u5b9e\u9645\u60c5\u51b5\u8c03\u6574&#xff0c;\u4e5f\u53ef\u4ee5\u4f7f\u7528 git branch -M main\u53ef\u4ee5\u5c06\u5f53\u524d\u5206\u652f\u91cd\u547d\u540d\u4e3a main&#xff09;<\/p>\n<p><span class=\"token function\">git<\/span> push -u origin main<\/p>\n<h4>&#xff08;5&#xff09;\u67e5\u770b\u8bb0\u5f55\u4e0e\u540c\u6b65<\/h4>\n<p>\u67e5\u770b\u5386\u53f2\u7248\u672c&#xff08;\u63d0\u4ea4\u8bb0\u5f55&#xff09;&#xff1a;<\/p>\n<p><span class=\"token function\">git<\/span> log <\/p>\n<p>\u901a\u8fc7url\u628agithub\u7b49\u4ed3\u5e93\u4e0b\u8f7d\u5230\u672c\u5730&#xff1a;<\/p>\n<p><span class=\"token function\">git<\/span> clone <span class=\"token operator\">&lt;<\/span>\u4ed3\u5e93URL<span class=\"token operator\">&gt;<\/span><\/p>\n<h4>&#xff08;6&#xff09;\u5176\u4ed6<\/h4>\n<p>\u26a0\ufe0f\u614e\u7528&#xff01;\u4e22\u5f03\u672c\u5730\u6240\u6709\u672a\u63d0\u4ea4\u7684\u4fee\u6539&#xff1a; &#xff08;\u6211\u662f\u5728\u672c\u5730\u4e0d\u77e5\u9053\u6539\u5565\u4e86&#xff0c;\u4f46\u662f\u60f3\u5b8c\u5168\u540c\u6b65\u4e0b\u6765\u4ed3\u5e93\u7684\u5185\u5bb9&#xff0c;\u76f4\u63a5pull\u62a5\u9519&#xff1a;error: Your local changes to the following files would be overwritten by merge\u65f6\u7528&#xff09;<\/p>\n<p><span class=\"token function\">git<\/span> checkout <span class=\"token builtin class-name\">.<\/span><\/p>\n<p>\u6267\u884c\u4e00\u6b21 git pull\u6216 git push\u540e\u4fdd\u5b58\u7528\u6237\u540d\u548c\u5bc6\u7801\u5230\u672c\u5730&#xff0c;\u907f\u514d\u6bcf\u6b21\u63a8\u9001\u90fd\u8f93\u5165\u5bc6\u7801&#xff1a;<\/p>\n<p><span class=\"token function\">git<\/span> config &#8211;global credential.helper store<\/p>\n<hr \/>\n<p>&#x1f389;\u5148\u8bb0\u5230\u8fd9&#xff0c;\u795d\u8bad\u7ec3\u987a\u5229&#xff01;&#x1f389;<\/p>\n<h3>&#x1f4da; \u672c\u6587\u53c2\u8003&#xff1a;<\/h3>\n<li>\u3010Ubuntu\u3011\u5b89\u88c5SSH\u542f\u7528\u8fdc\u7a0b\u8fde\u63a5<\/li>\n<li>ubuntu\u5982\u4f55\u8bbe\u7f6e\u9759\u6001ip<\/li>\n<li>[\u8fd0\u7ef4\u7b14\u8bb0]Ubuntu24.04\u9759\u6001ip\u914d\u7f6e<\/li>\n<li>Ubuntu24.04\u8bbe\u7f6e\u9759\u6001IP\u5730\u5740<\/li>\n<li>Windows\u4e3b\u673a\u8fdc\u7a0b\u684c\u9762\u8fde\u63a5Ubuntu24.04\u4e3b\u673a<\/li>\n<li>zerotier\u5b9e\u73b0\u5185\u7f51\u7a7f\u900f<\/li>\n<li>\u768e\u6708\u8fdeLinux\u4e8c\u8fdb\u5236\u7248\u914d\u7f6e &#8211; \u6267\u7740\u7684\u725b\u6218\u58eb\u7684\u6587\u7ae0 &#8211; \u77e5\u4e4e<\/li>\n<li>linux\u5982\u4f55\u4fee\u6539\u6587\u4ef6\u6743\u9650<\/li>\n<li>Windows\u4e0b\u5982\u4f55\u4f7f\u7528VScode\u8fde\u63a5\u8fdc\u7a0blinux\u670d\u52a1\u5668\u8fdb\u884c\u8fdc\u7a0b\u5f00\u53d1<\/li>\n<li>vscode\u8fdc\u7a0b\u8fde\u63a5\u670d\u52a1\u5668&#xff0c;\u65e0\u9700\u5bc6\u7801\u7684\u65b9\u5f0f\u3002<\/li>\n<li>Windows\u4e0b\u5982\u4f55\u4f7f\u7528VScode\u8fde\u63a5\u8fdc\u7a0blinux\u670d\u52a1\u5668\u8fdb\u884c\u8fdc\u7a0b\u5f00\u53d1<\/li>\n<li>\u3010Linux\u3011Screen \u8be6\u89e3\u4e0e\u5b9e\u7528\u6307\u5357 <\/li>\n<li>Linux\u5165\u95e8\u6559\u7a0b&#xff1a;nohup\u547d\u4ee4 <\/li>\n<li>\u89e3\u653e\u7ec8\u7aef\u7684\u795e\u5668&#xff1a;nohup \u5168\u89e3\u6790&#xff08;\u9644\u9ad8\u9891\u5b9e\u6218\u7528\u6cd5&#xff09; <\/li>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u5c06\u5206\u4e3a\u4e09\u4e2a\u9636\u6bb5&#xff1a;\u6309\u987a\u5e8f\u5b8c\u6210\u540e\u53ef\u5b9e\u73b0&#xff1a;\u5728\u672c\u5730\u8bad\u7ec3\u27a1\ufe0f\u5728\u5c40\u57df\u7f51\u8fdc\u7a0b\u8bad\u7ec3\u27a1\ufe0f\u5728\u516c\u7f51\u8fdc\u7a0b\u8bad\u7ec3 \u76ee\u5f55&#x1f31f; \u524d\u8a00\u4e00\u3001\u5b89\u88c5Ubuntu\u53ca\u57fa\u672c\u6df1\u5ea6\u5b66\u4e60\u73af\u5883\u3010\u5b8c\u6210\u540e\u53ef\u5728\u672c\u5730\u8bad\u7ec3\u3011\u4e8c\u3001\u914d\u7f6essh\u5e76\u8bbe\u7f6e\u9759\u6001ip\u3010\u5b8c\u6210\u540e\u53ef\u5728\u5c40\u57df\u7f51\u8fdc\u7a0b\u8bad\u7ec3\u3011&#xff08;1&#xff09;\u914d\u7f6essh &#x1f511;&#xff08;2&#xff09; \u914d\u7f6e\u9759\u6001ip &#x1f310;&#xff08;3&#xff09;\u53ef\u9009&#xff1a;\u4f7f\u7528RDP\u5171\u4eab\u684c\u9762 &amp;#x1f5<\/p>\n","protected":false},"author":2,"featured_media":73290,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1598,81,77,103,76,43,86],"topic":[],"class_list":["post-73298","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-gitee","tag-python","tag-ssh","tag-ubuntu","tag-vscode","tag-43","tag-86"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u642d\u5efa\u4e2a\u4eba\u6df1\u5ea6\u5b66\u4e60\u670d\u52a1\u5668\uff08Ubuntu24.04+VSCode+SSH\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\/73298.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u642d\u5efa\u4e2a\u4eba\u6df1\u5ea6\u5b66\u4e60\u670d\u52a1\u5668\uff08Ubuntu24.04+VSCode+SSH\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u672c\u6587\u5c06\u5206\u4e3a\u4e09\u4e2a\u9636\u6bb5&#xff1a;\u6309\u987a\u5e8f\u5b8c\u6210\u540e\u53ef\u5b9e\u73b0&#xff1a;\u5728\u672c\u5730\u8bad\u7ec3\u27a1\ufe0f\u5728\u5c40\u57df\u7f51\u8fdc\u7a0b\u8bad\u7ec3\u27a1\ufe0f\u5728\u516c\u7f51\u8fdc\u7a0b\u8bad\u7ec3 \u76ee\u5f55&#x1f31f; \u524d\u8a00\u4e00\u3001\u5b89\u88c5Ubuntu\u53ca\u57fa\u672c\u6df1\u5ea6\u5b66\u4e60\u73af\u5883\u3010\u5b8c\u6210\u540e\u53ef\u5728\u672c\u5730\u8bad\u7ec3\u3011\u4e8c\u3001\u914d\u7f6essh\u5e76\u8bbe\u7f6e\u9759\u6001ip\u3010\u5b8c\u6210\u540e\u53ef\u5728\u5c40\u57df\u7f51\u8fdc\u7a0b\u8bad\u7ec3\u3011&#xff08;1&#xff09;\u914d\u7f6essh &#x1f511;&#xff08;2&#xff09; \u914d\u7f6e\u9759\u6001ip &#x1f310;&#xff08;3&#xff09;\u53ef\u9009&#xff1a;\u4f7f\u7528RDP\u5171\u4eab\u684c\u9762 &amp;#x1f5\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/73298.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-07T05:18:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260207051808-6986cb105e563.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=\"7 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/73298.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/73298.html\",\"name\":\"\u642d\u5efa\u4e2a\u4eba\u6df1\u5ea6\u5b66\u4e60\u670d\u52a1\u5668\uff08Ubuntu24.04+VSCode+SSH\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-02-07T05:18:14+00:00\",\"dateModified\":\"2026-02-07T05:18:14+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/73298.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/73298.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/73298.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u642d\u5efa\u4e2a\u4eba\u6df1\u5ea6\u5b66\u4e60\u670d\u52a1\u5668\uff08Ubuntu24.04+VSCode+SSH\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":"\u642d\u5efa\u4e2a\u4eba\u6df1\u5ea6\u5b66\u4e60\u670d\u52a1\u5668\uff08Ubuntu24.04+VSCode+SSH\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\/73298.html","og_locale":"zh_CN","og_type":"article","og_title":"\u642d\u5efa\u4e2a\u4eba\u6df1\u5ea6\u5b66\u4e60\u670d\u52a1\u5668\uff08Ubuntu24.04+VSCode+SSH\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u672c\u6587\u5c06\u5206\u4e3a\u4e09\u4e2a\u9636\u6bb5&#xff1a;\u6309\u987a\u5e8f\u5b8c\u6210\u540e\u53ef\u5b9e\u73b0&#xff1a;\u5728\u672c\u5730\u8bad\u7ec3\u27a1\ufe0f\u5728\u5c40\u57df\u7f51\u8fdc\u7a0b\u8bad\u7ec3\u27a1\ufe0f\u5728\u516c\u7f51\u8fdc\u7a0b\u8bad\u7ec3 \u76ee\u5f55&#x1f31f; \u524d\u8a00\u4e00\u3001\u5b89\u88c5Ubuntu\u53ca\u57fa\u672c\u6df1\u5ea6\u5b66\u4e60\u73af\u5883\u3010\u5b8c\u6210\u540e\u53ef\u5728\u672c\u5730\u8bad\u7ec3\u3011\u4e8c\u3001\u914d\u7f6essh\u5e76\u8bbe\u7f6e\u9759\u6001ip\u3010\u5b8c\u6210\u540e\u53ef\u5728\u5c40\u57df\u7f51\u8fdc\u7a0b\u8bad\u7ec3\u3011&#xff08;1&#xff09;\u914d\u7f6essh &#x1f511;&#xff08;2&#xff09; \u914d\u7f6e\u9759\u6001ip &#x1f310;&#xff08;3&#xff09;\u53ef\u9009&#xff1a;\u4f7f\u7528RDP\u5171\u4eab\u684c\u9762 &amp;#x1f5","og_url":"https:\/\/www.wsisp.com\/helps\/73298.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-02-07T05:18:14+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260207051808-6986cb105e563.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"7 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/73298.html","url":"https:\/\/www.wsisp.com\/helps\/73298.html","name":"\u642d\u5efa\u4e2a\u4eba\u6df1\u5ea6\u5b66\u4e60\u670d\u52a1\u5668\uff08Ubuntu24.04+VSCode+SSH\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-02-07T05:18:14+00:00","dateModified":"2026-02-07T05:18:14+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/73298.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/73298.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/73298.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u642d\u5efa\u4e2a\u4eba\u6df1\u5ea6\u5b66\u4e60\u670d\u52a1\u5668\uff08Ubuntu24.04+VSCode+SSH\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\/73298","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=73298"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/73298\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/73290"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=73298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=73298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=73298"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=73298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}