{"id":1220,"date":"2026-10-06T10:52:04","date_gmt":"2026-10-06T02:52:04","guid":{"rendered":"https:\/\/wp.inskychen.com\/?p=1220"},"modified":"2026-10-06T10:52:30","modified_gmt":"2026-10-06T02:52:30","slug":"%e4%b8%80%e8%a1%8c%e6%8c%87%e4%bb%a4%e9%80%a3%e7%b7%9a-proxmox-%e4%b8%bb%e6%a9%9f%e8%88%87%e5%85%a7%e7%b6%b2-vm%ef%bc%9assh-%e9%87%91%e9%91%b0%ef%bc%8b%e5%88%a5%e5%90%8d%ef%bc%8bproxyjump-%e8%a8%ad","status":"publish","type":"post","link":"https:\/\/wp.inskychen.com\/?p=1220","title":{"rendered":"\u4e00\u884c\u6307\u4ee4\u9023\u7dda Proxmox \u4e3b\u6a5f\u8207\u5167\u7db2 VM\uff1aSSH \u91d1\u9470\uff0b\u5225\u540d\uff0bProxyJump \u8a2d\u5b9a\u6559\u5b78"},"content":{"rendered":"\n<p>\u7ba1\u7406\u5bb6\u88e1\u7684 Proxmox VE\uff08PVE\uff09\u4e3b\u6a5f\u6642\uff0c\u6bcf\u6b21\u9023\u7dda\u90fd\u8981\u6253\u4e00\u9577\u4e32 <code>ssh -p 2222 myuser@example.com<\/code>\uff0c\u518d\u8f38\u5165\u4e00\u6b21\u5bc6\u78bc\uff1b\u60f3\u9032\u5230\u4e3b\u6a5f\u88e1\u9762\u7684 VM\uff0c\u9084\u5f97\u5148\u767b\u5165\u4e3b\u6a5f\u3001\u518d\u8df3\u4e00\u6b21\u3002\u9019\u7bc7\u6559\u4f60\u7528\u300cSSH \u91d1\u9470\u300d\u52a0\u4e0a\u300c<code>~\/.ssh\/config<\/code> \u5225\u540d\u300d\uff0c\u628a\u9019\u4e9b\u6b65\u9a5f\u7e2e\u6210\u4e00\u884c\u6307\u4ee4\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b8c\u6210\u5f8c\u7684\u6548\u679c<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u8981\u505a\u7684\u4e8b<\/th><th>\u8a2d\u5b9a\u524d<\/th><th>\u8a2d\u5b9a\u5f8c<\/th><\/tr><\/thead><tbody><tr><td>\u9023\u7dda\u5230 PVE \u4e3b\u6a5f<\/td><td><code>ssh -p 2222 myuser@example.com<\/code>\uff0c\u518d\u8f38\u5165\u5bc6\u78bc<\/td><td><code>ssh my-pve<\/code><\/td><\/tr><tr><td>\u9023\u7dda\u5230\u5167\u7db2 VM<\/td><td>\u5148\u767b\u5165 PVE\uff0c\u518d <code>ssh myuser@192.168.1.50<\/code>\uff0c\u518d\u8f38\u5165\u4e00\u6b21\u5bc6\u78bc<\/td><td><code>ssh my-vm<\/code><\/td><\/tr><tr><td>\u50b3\u6a94\u6848\u5230 VM<\/td><td>\u5148\u50b3\u5230 PVE\uff0c\u518d\u5f9e PVE \u50b3\u5230 VM<\/td><td><code>scp file.txt my-vm:\/tmp\/<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u6587\u4e2d\u4f7f\u7528\u7684\u90fd\u662f\u7bc4\u4f8b\u503c\uff0c\u8acb\u63db\u6210\u4f60\u81ea\u5df1\u7684\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>PVE \u4e3b\u6a5f\u5c0d\u5916\u7db2\u5740\uff1a<code>example.com<\/code>\uff0cSSH \u57e0\uff1a<code>2222<\/code><\/li>\n\n\n\n<li>\u767b\u5165\u5e33\u865f\uff1a<code>myuser<\/code><\/li>\n\n\n\n<li>\u5167\u7db2 VM \u7684 IP\uff1a<code>192.168.1.50<\/code><\/li>\n\n\n\n<li>\u91d1\u9470\u6a94\u540d\uff1a<code>~\/.ssh\/homelab_ed25519<\/code><\/li>\n<\/ul>\n\n\n\n<p><strong>\u9069\u7528\u74b0\u5883\uff1a<\/strong>macOS\u3001Linux \u5167\u5efa\u7684 OpenSSH \u90fd\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u3002Windows 10\uff0f11 \u4e5f\u5167\u5efa OpenSSH\uff0c\u8acb\u5728 PowerShell \u4e2d\u64cd\u4f5c\uff0c\u4e0d\u540c\u7684\u5730\u65b9\u6587\u4e2d\u6703\u53e6\u5916\u8aaa\u660e\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6b65\u9a5f\u4e00\uff1a\u7522\u751f SSH \u91d1\u9470<\/h2>\n\n\n\n<p>\u5728\u4f60\u81ea\u5df1\u7684\u96fb\u8166\uff08\u4e0d\u662f\u4f3a\u670d\u5668\uff09\u4e0a\u57f7\u884c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh-keygen -t ed25519 -f ~\/.ssh\/homelab_ed25519 -C \"homelab\"<\/code><\/pre>\n\n\n\n<p>\u904e\u7a0b\u4e2d\u6703\u8a62\u554f\u5bc6\u8a9e\uff08passphrase\uff09\u3002\u8a2d\u5b9a\u5bc6\u8a9e\u6703\u66f4\u5b89\u5168\uff0c\u5c31\u7b97\u79c1\u9470\u5916\u6d41\uff0c\u5225\u4eba\u4e5f\u7121\u6cd5\u76f4\u63a5\u4f7f\u7528\uff1b\u5982\u679c\u60f3\u5b8c\u5168\u514d\u8f38\u5165\uff0c\u53ef\u4ee5\u76f4\u63a5\u6309 Enter \u7559\u7a7a\u3002<\/p>\n\n\n\n<p>\u57f7\u884c\u5b8c\u6210\u5f8c\u6703\u7522\u751f\u5169\u500b\u6a94\u6848\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>~\/.ssh\/homelab_ed25519<\/code>\uff1a<strong>\u79c1\u9470<\/strong>\uff0c\u53ea\u80fd\u7559\u5728\u4f60\u7684\u96fb\u8166\u4e0a\uff0c\u7d55\u5c0d\u4e0d\u8981\u7d66\u4efb\u4f55\u4eba\u3002<\/li>\n\n\n\n<li><code>~\/.ssh\/homelab_ed25519.pub<\/code>\uff1a<strong>\u516c\u9470<\/strong>\uff0c\u8981\u653e\u5230\u4f3a\u670d\u5668\u4e0a\u7684\u5c31\u662f\u9019\u500b\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u6b65\u9a5f\u4e8c\uff1a\u628a\u516c\u9470\u653e\u5230 PVE \u4e3b\u6a5f<\/h2>\n\n\n\n<p>macOS\uff0fLinux \u4f7f\u7528 <code>ssh-copy-id<\/code>\uff0c\u9019\u662f\u6700\u5f8c\u4e00\u6b21\u9700\u8981\u8f38\u5165\u5bc6\u78bc\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh-copy-id -i ~\/.ssh\/homelab_ed25519.pub -p 2222 myuser@example.com<\/code><\/pre>\n\n\n\n<p>Windows \u6c92\u6709 <code>ssh-copy-id<\/code>\uff0c\u6539\u5728 PowerShell \u57f7\u884c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>type $env:USERPROFILE\\.ssh\\homelab_ed25519.pub | ssh -p 2222 myuser@example.com \"mkdir -p ~\/.ssh &amp;&amp; chmod 700 ~\/.ssh &amp;&amp; cat &gt;&gt; ~\/.ssh\/authorized_keys &amp;&amp; chmod 600 ~\/.ssh\/authorized_keys\"<\/code><\/pre>\n\n\n\n<p>\u63a5\u8457\u6e2c\u8a66\u80fd\u4e0d\u80fd\u7528\u91d1\u9470\u767b\u5165\uff0c<strong>\u4e0d\u518d\u8a62\u554f\u5bc6\u78bc<\/strong>\u5c31\u4ee3\u8868\u6210\u529f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh -i ~\/.ssh\/homelab_ed25519 -p 2222 myuser@example.com<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u6b65\u9a5f\u4e09\uff1a\u5efa\u7acb SSH \u5225\u540d<\/h2>\n\n\n\n<p>\u7528\u6587\u5b57\u7de8\u8f2f\u5668\u6253\u958b\uff08\u6216\u65b0\u5efa\uff09<code>~\/.ssh\/config<\/code>\uff0cWindows \u7684\u4f4d\u7f6e\u662f <code>C:\\Users\\\u4f60\u7684\u5e33\u865f\\.ssh\\config<\/code>\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano ~\/.ssh\/config<\/code><\/pre>\n\n\n\n<p>\u52a0\u5165\u4ee5\u4e0b\u5167\u5bb9\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Host my-pve\n  HostName example.com\n  Port 2222\n  User myuser\n  IdentityFile ~\/.ssh\/homelab_ed25519\n  IdentitiesOnly yes<\/code><\/pre>\n\n\n\n<p>\u5404\u6b04\u4f4d\u7684\u610f\u601d\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u6b04\u4f4d<\/th><th>\u8aaa\u660e<\/th><\/tr><\/thead><tbody><tr><td><code>Host<\/code><\/td><td>\u5225\u540d\uff0c\u4e4b\u5f8c\u5c31\u6253 <code>ssh my-pve<\/code>\u3002\u540d\u7a31\u53ef\u4ee5\u81ea\u5df1\u53d6\uff0c\u5efa\u8b70\u4e0d\u8981\u8ddf\u771f\u5be6\u7db2\u57df\u540c\u540d\uff0c\u907f\u514d\u6df7\u6dc6\u3002<\/td><\/tr><tr><td><code>HostName<\/code><\/td><td>\u771f\u6b63\u8981\u9023\u7684\u7db2\u5740\u6216 IP\u3002<\/td><\/tr><tr><td><code>Port<\/code><\/td><td>SSH \u57e0\u865f\uff0c\u9810\u8a2d\u662f 22 \u6642\u53ef\u4ee5\u7701\u7565\u3002<\/td><\/tr><tr><td><code>User<\/code><\/td><td>\u767b\u5165\u5e33\u865f\u3002<\/td><\/tr><tr><td><code>IdentityFile<\/code><\/td><td>\u8981\u4f7f\u7528\u7684\u79c1\u9470\u3002<\/td><\/tr><tr><td><code>IdentitiesOnly yes<\/code><\/td><td>\u53ea\u4f7f\u7528\u4e0a\u9762\u6307\u5b9a\u7684\u91d1\u9470\u3002\u96fb\u8166\u88e1\u6709\u5f88\u591a\u628a\u91d1\u9470\u6642\uff0c\u53ef\u4ee5\u907f\u514d\u4e00\u628a\u4e00\u628a\u4e82\u8a66\uff0c\u5c0e\u81f4\u88ab\u4f3a\u670d\u5668\u62d2\u7d55\u3002<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>macOS\uff0fLinux \u5b58\u6a94\u5f8c\uff0c\u8a18\u5f97\u628a\u8a2d\u5b9a\u6a94\u6b0a\u9650\u8a2d\u6210\u53ea\u6709\u81ea\u5df1\u80fd\u8b80\u5beb\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chmod 600 ~\/.ssh\/config<\/code><\/pre>\n\n\n\n<p>\u6e2c\u8a66\u5225\u540d\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh my-pve<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u6b65\u9a5f\u56db\uff1a\u900f\u904e PVE \u4e3b\u6a5f\u76f4\u9023\u5167\u7db2 VM<\/h2>\n\n\n\n<p>PVE \u4e0a\u7684 VM \u901a\u5e38\u53ea\u6709\u5167\u7db2 IP\uff0c\u5916\u9762\u9023\u4e0d\u9032\u53bb\u3002\u7528 <code>ProxyJump<\/code> \u5c31\u80fd\u8b93 SSH \u81ea\u52d5\u300c\u7d93\u904e\u300dPVE \u4e3b\u6a5f\uff0c\u4e00\u884c\u6307\u4ee4\u76f4\u63a5\u9023\u5230 VM\u3002\u5728 <code>~\/.ssh\/config<\/code> \u518d\u52a0\u5165\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Host my-vm\n  HostName 192.168.1.50\n  User myuser\n  ProxyJump my-pve\n  IdentityFile ~\/.ssh\/homelab_ed25519\n  IdentitiesOnly yes<\/code><\/pre>\n\n\n\n<p><code>ProxyJump my-pve<\/code> \u7684\u610f\u601d\u662f\u300c\u5148\u9023\u5230 my-pve\uff0c\u518d\u5f9e\u90a3\u88e1\u9023\u5230 192.168.1.50\u300d\u3002\u9019\u88e1\u76f4\u63a5\u4f7f\u7528\u4e0a\u4e00\u6b65\u5efa\u7acb\u7684\u5225\u540d\uff0c\u6240\u4ee5 PVE \u7684\u7db2\u5740\u3001\u57e0\u865f\u3001\u91d1\u9470\u90fd\u4e0d\u7528\u518d\u5beb\u4e00\u6b21\u3002<\/p>\n\n\n\n<p>\u63a5\u8457\u628a\u516c\u9470\u4e5f\u653e\u9032 VM\u3002\u56e0\u70ba\u5225\u540d\u5df2\u7d93\u8a2d\u5b9a\u597d\u8df3\u677f\uff0c<code>ssh-copy-id<\/code> \u6703\u81ea\u52d5\u7d93\u904e PVE \u4e3b\u6a5f\uff0c\u53ea\u9700\u8981\u8f38\u5165\u4e00\u6b21 VM \u7684\u5bc6\u78bc\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh-copy-id -i ~\/.ssh\/homelab_ed25519.pub my-vm<\/code><\/pre>\n\n\n\n<p>\u5b8c\u6210\u5f8c\u6e2c\u8a66\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh my-vm<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>\u70ba\u4ec0\u9ebc\u7528 ProxyJump\uff1f<\/strong>VM \u4e0d\u9700\u8981\u5c0d\u5916\u958b\u653e\u4efb\u4f55\u57e0\uff0c\u79c1\u9470\u4e5f\u53ea\u7559\u5728\u4f60\u81ea\u5df1\u7684\u96fb\u8166\u4e0a\uff0c\u4e0d\u5fc5\u8907\u88fd\u5230 PVE \u4e3b\u6a5f\u3002\u6574\u6bb5\u9023\u7dda\u5f9e\u982d\u5230\u5c3e\u90fd\u662f\u52a0\u5bc6\u7684\uff0c\u6bd4\u628a\u79c1\u9470\u653e\u5728\u8df3\u677f\u4e3b\u6a5f\u4e0a\uff0c\u6216\u4f7f\u7528 agent forwarding \u66f4\u5b89\u5168\u3002<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">\u5225\u540d\u4e0d\u53ea\u7528\u5728 ssh<\/h2>\n\n\n\n<p>\u53ea\u8981\u662f\u8d70 SSH \u7684\u5de5\u5177\uff0c\u90fd\u80fd\u76f4\u63a5\u4f7f\u7528\u9019\u4e9b\u5225\u540d\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \u76f4\u63a5\u5728\u9060\u7aef\u57f7\u884c\u4e00\u500b\u6307\u4ee4\nssh my-pve 'uptime'\n\n# \u50b3\u6a94\u6848\u5230\u5167\u7db2 VM\uff08\u81ea\u52d5\u7d93\u904e PVE\uff09\nscp backup.tar.gz my-vm:\/tmp\/\n\n# \u540c\u6b65\u8cc7\u6599\u593e\nrsync -av .\/website\/ my-vm:\/var\/www\/html\/<\/code><\/pre>\n\n\n\n<p>VS Code \u7684 Remote-SSH \u64f4\u5145\u5957\u4ef6\u4e5f\u6703\u8b80\u53d6 <code>~\/.ssh\/config<\/code>\uff0c\u9023\u7dda\u9078\u55ae\u88e1\u6703\u76f4\u63a5\u51fa\u73fe <code>my-pve<\/code>\u3001<code>my-vm<\/code>\uff0c\u9ede\u4e00\u4e0b\u5c31\u80fd\u9060\u7aef\u7de8\u8f2f VM \u88e1\u7684\u6a94\u6848\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u7591\u96e3\u6392\u89e3<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u932f\u8aa4\u8a0a\u606f\u6216\u72c0\u6cc1<\/th><th>\u53ef\u80fd\u539f\u56e0<\/th><th>\u89e3\u6c7a\u65b9\u6cd5<\/th><\/tr><\/thead><tbody><tr><td><code>Permission denied (publickey)<\/code><\/td><td>\u516c\u9470\u6c92\u6709\u653e\u9032\u53bb\uff0c\u6216\u4f3a\u670d\u5668\u4e0a\u7684\u6b0a\u9650\u4e0d\u5c0d<\/td><td>\u5728\u4f3a\u670d\u5668\u57f7\u884c <code>chmod 700 ~\/.ssh<\/code> \u548c <code>chmod 600 ~\/.ssh\/authorized_keys<\/code>\uff1b\u518d\u7528 <code>ssh -v my-pve<\/code> \u67e5\u770b\u5be6\u969b\u7528\u4e86\u54ea\u628a\u91d1\u9470<\/td><\/tr><tr><td><code>Too many authentication failures<\/code><\/td><td>\u96fb\u8166\u88e1\u91d1\u9470\u592a\u591a\uff0cSSH \u4e00\u628a\u4e00\u628a\u8a66\uff0c\u8d85\u904e\u4f3a\u670d\u5668\u5141\u8a31\u7684\u6b21\u6578<\/td><td>\u5728\u5225\u540d\u4e2d\u52a0\u4e0a <code>IdentitiesOnly yes<\/code><\/td><\/tr><tr><td><code>Bad owner or permissions on ~\/.ssh\/config<\/code><\/td><td>\u8a2d\u5b9a\u6a94\u6b0a\u9650\u592a\u5bec\u9b06<\/td><td><code>chmod 600 ~\/.ssh\/config<\/code><\/td><\/tr><tr><td>\u5225\u540d\u6c92\u751f\u6548\uff0c\u6216\u9023\u5230\u932f\u7684\u57e0\u865f<\/td><td><code>~\/.ssh\/config<\/code> \u662f\u7531\u4e0a\u5f80\u4e0b\u8b80\uff0c<strong>\u540c\u4e00\u500b\u9805\u76ee\u4ee5\u7b2c\u4e00\u500b\u7b26\u5408\u7684\u8a2d\u5b9a\u70ba\u6e96<\/strong>\u3002\u524d\u9762\u5982\u679c\u6709 <code>Host *<\/code> \u6216\u540c\u540d\u7db2\u57df\u7684\u5340\u584a\u8a2d\u5b9a\u4e86 <code>Port<\/code>\uff0c\u5c31\u6703\u84cb\u904e\u4f60\u7684\u8a2d\u5b9a<\/td><td>\u7528 <code>ssh -G my-pve<\/code> \u67e5\u770b\u6700\u7d42\u5957\u7528\u7684\u8a2d\u5b9a\uff1b\u5225\u540d\u53d6\u4e00\u500b\u4e0d\u6703\u548c\u7db2\u57df\u91cd\u8907\u7684\u540d\u5b57<\/td><\/tr><tr><td><code>ssh my-vm<\/code> \u9023\u4e0d\u4e0a<\/td><td>\u8df3\u677f\u4e3b\u6a5f\u672c\u8eab\u5c31\u9023\u4e0d\u4e0a\uff0c\u6216 VM \u7684 IP \u932f\u8aa4<\/td><td>\u5148\u78ba\u8a8d <code>ssh my-pve<\/code> \u80fd\u7528\uff1b\u518d\u767b\u5165 PVE \u78ba\u8a8d VM \u7684 IP\u3002<code>ProxyJump<\/code> \u9700\u8981 OpenSSH 7.3 \u4ee5\u4e0a\u7248\u672c<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b89\u5168\u5efa\u8b70<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u79c1\u9470\u4e0d\u8981\u5916\u6d41\u3002<\/strong>\u5efa\u8b70\u5e6b\u79c1\u9470\u8a2d\u5b9a\u5bc6\u8a9e\uff1bmacOS \u53ef\u4ee5\u5728 <code>~\/.ssh\/config<\/code> \u7684\u5225\u540d\u4e2d\u52a0\u4e0a <code>UseKeychain yes<\/code> \u548c <code>AddKeysToAgent yes<\/code>\uff0c\u8b93\u7cfb\u7d71\u9470\u5319\u5708\u8a18\u4f4f\u5bc6\u8a9e\uff0c\u4e0d\u7528\u6bcf\u6b21\u8f38\u5165\u3002<\/li>\n\n\n\n<li><strong>\u78ba\u8a8d\u91d1\u9470\u53ef\u4ee5\u767b\u5165\u5f8c\uff0c\u53ef\u4ee5\u8003\u616e\u95dc\u9589\u5bc6\u78bc\u767b\u5165\u3002<\/strong>\u5728\u4f3a\u670d\u5668\u7684 <code>\/etc\/ssh\/sshd_config<\/code> \u8a2d\u5b9a <code>PasswordAuthentication no<\/code>\uff0c\u5c31\u80fd\u64cb\u6389\u66b4\u529b\u7834\u89e3\u5bc6\u78bc\u7684\u653b\u64ca\u3002\u4fee\u6539\u524d\u8acb\u5148\u53e6\u5916\u958b\u4e00\u500b<strong>\u5df2\u7d93\u767b\u5165\u7684\u8996\u7a97<\/strong>\uff0c\u518d\u91cd\u65b0\u555f\u52d5 sshd\uff0c\u842c\u4e00\u8a2d\u5b9a\u932f\u8aa4\u9084\u80fd\u6551\u56de\u4f86\uff1bPVE \u4e3b\u6a5f\u4e5f\u8acb\u78ba\u8a8d\u6709\u87a2\u5e55\u3001\u9375\u76e4\u6216\u5176\u4ed6\u65b9\u5f0f\u53ef\u4ee5\u76f4\u63a5\u64cd\u4f5c\uff0c\u4ee5\u514d\u628a\u81ea\u5df1\u9396\u5728\u5916\u9762\u3002<\/li>\n\n\n\n<li><strong>\u628a SSH \u6539\u6210\u975e 22 \u7684\u57e0\u865f<\/strong>\u53ea\u80fd\u6e1b\u5c11\u88ab\u81ea\u52d5\u6383\u63cf\u7684\u96dc\u8a0a\uff0c\u4e0d\u80fd\u53d6\u4ee3\u91d1\u9470\u8a8d\u8b49\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u7d50\u8a9e<\/h2>\n\n\n\n<p>\u8a2d\u5b9a\u4e00\u6b21 SSH \u91d1\u9470\u548c\u5225\u540d\uff0c\u4e4b\u5f8c\u7ba1\u7406 PVE \u4e3b\u6a5f\u548c\u88e1\u9762\u7684\u6bcf\u4e00\u53f0 VM\uff0c\u90fd\u53ea\u8981\u4e00\u884c\u77ed\u6307\u4ee4\uff0c\u4e0d\u7528\u518d\u8a18\u57e0\u865f\u3001IP\uff0c\u4e5f\u4e0d\u7528\u4e00\u76f4\u8f38\u5165\u5bc6\u78bc\u3002\u5bb6\u88e1\u7684 VM \u8d8a\u591a\uff0c\u9019\u500b\u8a2d\u5b9a\u5c31\u8d8a\u7701\u6642\u9593\u3002<\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>\u7ba1\u7406\u5bb6\u88e1\u7684 Proxmox VE\uff08PVE\uff09\u4e3b\u6a5f\u6642\uff0c\u6bcf\u6b21\u9023\u7dda\u90fd\u8981\u6253\u4e00\u9577\u4e32 ssh -p 2222 myuser@example.com\uff0c\u518d\u8f38\u5165\u4e00\u6b21\u5bc6\u78bc\uff1b\u60f3\u9032\u5230\u4e3b\u6a5f\u88e1\u9762\u7684 VM\uff0c\u9084\u5f97\u5148\u767b\u5165\u4e3b\u6a5f\u3001\u518d\u8df3\u4e00\u6b21\u3002\u9019\u7bc7\u6559\u4f60\u7528\u300cSSH \u91d1\u9470\u300d\u52a0\u4e0a\u300c~\/.s [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[54],"class_list":["post-1220","post","type-post","status-publish","format-standard","hentry","category-ieee","tag-proxmox"],"_links":{"self":[{"href":"https:\/\/wp.inskychen.com\/index.php?rest_route=\/wp\/v2\/posts\/1220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.inskychen.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.inskychen.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.inskychen.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.inskychen.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1220"}],"version-history":[{"count":2,"href":"https:\/\/wp.inskychen.com\/index.php?rest_route=\/wp\/v2\/posts\/1220\/revisions"}],"predecessor-version":[{"id":1222,"href":"https:\/\/wp.inskychen.com\/index.php?rest_route=\/wp\/v2\/posts\/1220\/revisions\/1222"}],"wp:attachment":[{"href":"https:\/\/wp.inskychen.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.inskychen.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.inskychen.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}