{"id":1320,"date":"2026-03-20T15:36:25","date_gmt":"2026-03-20T07:36:25","guid":{"rendered":"https:\/\/www.ygcloud.com\/knowledge\/?p=1320"},"modified":"2026-07-24T18:30:49","modified_gmt":"2026-07-24T10:30:49","slug":"ssh-%e8%bf%9e%e4%b8%8d%e4%b8%8a%e6%80%8e%e4%b9%88%e5%8a%9e%ef%bc%9a%e6%9c%80%e5%b8%b8%e8%a7%81-8-%e4%b8%aa%e5%8e%9f%e5%9b%a0%e5%92%8c%e6%8e%92%e6%9f%a5%e9%a1%ba%e5%ba%8f","status":"publish","type":"post","link":"https:\/\/www.ygcloud.com\/knowledge\/1320\/","title":{"rendered":"SSH\u8fde\u4e0d\u4e0a\u670d\u52a1\u5668\u600e\u4e48\u529e\uff1f\u6309\u62a5\u9519\u6392\u67e5\u7aef\u53e3\u3001\u5bc6\u94a5\u4e0e\u670d\u52a1"},"content":{"rendered":"<section data-seo-update=\"20260724-1320\">\n<p><strong>\u5148\u8bf4\u7ed3\u8bba\uff1a<\/strong>SSH \u8fde\u4e0d\u4e0a\u65f6\uff0c\u5148\u4fdd\u5b58\u5b8c\u6574\u62a5\u9519\uff0c\u518d\u6309\u201c\u5730\u5740\u4e0e\u7f51\u7edc \u2192 TCP \u7aef\u53e3 \u2192 \u5b89\u5168\u7ec4\/\u9632\u706b\u5899 \u2192 sshd \u670d\u52a1 \u2192 \u7528\u6237\u4e0e\u5bc6\u94a5 \u2192 \u4e3b\u673a\u6307\u7eb9\u201d\u9010\u5c42\u6392\u67e5\u3002<code>Connection timed out<\/code>\u3001<code>Connection refused<\/code>\u3001<code>Permission denied<\/code> \u548c <code>REMOTE HOST IDENTIFICATION HAS CHANGED<\/code> \u6307\u5411\u4e0d\u540c\u5c42\uff0c\u4e0d\u80fd\u9760\u91cd\u542f\u3001\u91cd\u88c5\u6216\u628a 22 \u7aef\u53e3\u5f00\u653e\u7ed9\u5168\u7f51\u78b0\u8fd0\u6c14\u3002<\/p>\n<figure>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1321\" src=\"https:\/\/www.ygcloud.com\/knowledge\/wp-content\/uploads\/2026\/03\/ab7f5c9bf067fe9.png\" alt=\"SSH\u8fde\u63a5\u5931\u8d25\u6309\u7f51\u7edc\u7aef\u53e3\u670d\u52a1\u8ba4\u8bc1\u6392\u67e5\" width=\"585\" height=\"379\" srcset=\"https:\/\/www.ygcloud.com\/knowledge\/wp-content\/uploads\/2026\/03\/ab7f5c9bf067fe9.png 585w, https:\/\/www.ygcloud.com\/knowledge\/wp-content\/uploads\/2026\/03\/ab7f5c9bf067fe9-300x194.png 300w\" sizes=\"auto, (max-width: 585px) 100vw, 585px\" \/><figcaption>\u5148\u6309\u9519\u8bef\u9636\u6bb5\u5206\u5c42\uff0c\u80fd\u907f\u514d\u628a\u8ba4\u8bc1\u95ee\u9898\u8bef\u5f53\u6210\u7f51\u7edc\u6545\u969c\u3002<\/figcaption><\/figure>\n<h2>\u7b2c\u4e00\u6b65\uff1a\u4fdd\u5b58\u51c6\u786e\u62a5\u9519\u4e0e\u8fde\u63a5\u53c2\u6570<\/h2>\n<p>\u5728\u672c\u5730\u7ec8\u7aef\u4f7f\u7528\u5b9e\u9645\u7528\u6237\u3001\u7aef\u53e3\u548c\u5bc6\u94a5\u6267\u884c\u8be6\u7ec6\u65e5\u5fd7\uff1a<\/p>\n<pre><code>ssh -vvv -o ConnectTimeout=10 -p 22 -i ~\/.ssh\/id_ed25519 user@203.0.113.10\n<\/code><\/pre>\n<p><a href=\"https:\/\/man.openbsd.org\/ssh\">OpenSSH ssh \u624b\u518c<\/a>\u8bf4\u660e\uff0c<code>-v<\/code>\u7528\u4e8e\u8f93\u51fa\u8fde\u63a5\u3001\u8ba4\u8bc1\u548c\u914d\u7f6e\u8c03\u8bd5\u4fe1\u606f\uff0c\u6700\u591a\u53ef\u4f7f\u7528\u4e09\u4e2a <code>v<\/code>\u3002\u65e5\u5fd7\u53ef\u80fd\u5305\u542b\u7528\u6237\u540d\u3001\u5730\u5740\u548c\u8def\u5f84\uff0c\u5206\u4eab\u7ed9\u5de5\u5355\u524d\u5e94\u8131\u654f\uff1b\u7edd\u4e0d\u80fd\u4e0a\u4f20\u79c1\u94a5\u3001\u5bc6\u7801\u6216\u4f1a\u8bdd\u4ee4\u724c\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>\u5178\u578b\u62a5\u9519<\/th>\n<th>\u66f4\u53ef\u80fd\u7684\u5c42<\/th>\n<th>\u5148\u505a\u4ec0\u4e48<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Connection timed out<\/td>\n<td>\u5730\u5740\u3001\u8def\u7531\u3001\u5b89\u5168\u7ec4\u3001\u9632\u706b\u5899<\/td>\n<td>\u6838\u5bf9 IP\/\u7aef\u53e3\uff0c\u4ece\u53e6\u4e00\u7f51\u7edc\u505a TCP \u6d4b\u8bd5<\/td>\n<\/tr>\n<tr>\n<td>No route to host<\/td>\n<td>\u672c\u5730\/\u4e2d\u95f4\u8def\u7531\u6216\u660e\u786e\u62d2\u7edd<\/td>\n<td>\u68c0\u67e5\u672c\u5730\u8def\u7531\u3001\u7f51\u5173\u3001IPv4\/IPv6 \u548c\u9632\u706b\u5899<\/td>\n<\/tr>\n<tr>\n<td>Connection refused<\/td>\n<td>\u76ee\u6807\u53ef\u8fbe\u4f46\u65e0\u670d\u52a1\u76d1\u542c\uff0c\u6216\u4e3b\u52a8\u62d2\u7edd<\/td>\n<td>\u7528\u63a7\u5236\u53f0\u68c0\u67e5 sshd \u548c\u76d1\u542c\u5730\u5740<\/td>\n<\/tr>\n<tr>\n<td>Permission denied<\/td>\n<td>\u7528\u6237\u3001\u5bc6\u94a5\u3001\u5bc6\u7801\u6216\u7b56\u7565<\/td>\n<td>\u8bfb\u53d6\u65e5\u5fd7\uff0c\u6838\u5bf9\u8d26\u53f7\u548c\u8ba4\u8bc1\u65b9\u5f0f<\/td>\n<\/tr>\n<tr>\n<td>Host key verification failed<\/td>\n<td>\u4e3b\u673a\u6307\u7eb9\u53d8\u5316\u6216 known_hosts<\/td>\n<td>\u5148\u4ece\u53ef\u4fe1\u63a7\u5236\u53f0\u6838\u5bf9\u65b0\u6307\u7eb9<\/td>\n<\/tr>\n<tr>\n<td>Too many authentication failures<\/td>\n<td>\u5ba2\u6237\u7aef\u5c1d\u8bd5\u4e86\u8fc7\u591a\u5bc6\u94a5<\/td>\n<td>\u663e\u5f0f\u6307\u5b9a\u76ee\u6807\u5bc6\u94a5\u548c IdentitiesOnly<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u7b2c\u4e8c\u6b65\uff1a\u6838\u5bf9\u5b9e\u4f8b\u3001IP\u3001\u7528\u6237\u548c\u7aef\u53e3<\/h2>\n<ul>\n<li>\u5b9e\u4f8b\u662f\u5426\u5904\u4e8e\u8fd0\u884c\u72b6\u6001\uff0c\u662f\u5426\u521a\u91cd\u88c5\u3001\u91cd\u542f\u3001\u51bb\u7ed3\u3001\u5230\u671f\u6216\u66f4\u6362 IP\uff1b<\/li>\n<li>\u8fde\u63a5\u7684\u662f\u5f53\u524d\u516c\u7f51 IP \u6216\u6b63\u786e DNS\uff0c\u800c\u4e0d\u662f\u5185\u7f51\u3001\u65e7\u5730\u5740\u6216\u9519\u8bef\u7684 AAAA\uff1b<\/li>\n<li>Linux \u955c\u50cf\u9ed8\u8ba4\u7528\u6237\u53ef\u80fd\u662f <code>root<\/code>\u3001<code>ubuntu<\/code>\u3001<code>debian<\/code> \u7b49\uff0c\u4ee5\u955c\u50cf\u8bf4\u660e\u4e3a\u51c6\uff1b<\/li>\n<li>SSH \u662f\u5426\u4ecd\u4f7f\u7528 22\uff0c\u8fd8\u662f\u63a7\u5236\u53f0\/\u914d\u7f6e\u4e2d\u8bb0\u5f55\u7684\u81ea\u5b9a\u4e49\u7aef\u53e3\uff1b<\/li>\n<li>IPv4 \u4e0e IPv6 \u662f\u5426\u5206\u522b\u53ef\u8fbe\uff0c\u53ef\u7528 <code>ssh -4<\/code> \u6216 <code>ssh -6<\/code>\u5b9a\u4f4d\u3002<\/li>\n<\/ul>\n<p>\u4e0d\u8981\u6839\u636e\u7b2c\u4e09\u65b9\u6559\u7a0b\u731c\u201c\u670d\u52a1\u5546\u4e00\u5b9a\u4f7f\u7528\u968f\u673a\u7aef\u53e3\u201d\u3002\u8ba2\u5355\u3001\u5b9e\u4f8b\u8be6\u60c5\u3001\u4ea4\u4ed8\u90ae\u4ef6\u548c\u73b0\u6709\u914d\u7f6e\u624d\u662f\u8bc1\u636e\u3002<\/p>\n<h2>\u7b2c\u4e09\u6b65\uff1a\u4ece\u5ba2\u6237\u7aef\u6d4b\u8bd5 TCP\uff0c\u800c\u4e0d\u53ea\u770b Ping<\/h2>\n<p>Ping \u4f7f\u7528 ICMP\uff0cSSH \u4f7f\u7528 TCP\u3002Ping \u88ab\u7981\u4e0d\u4ee3\u8868 SSH \u4e0d\u901a\uff0cPing \u901a\u4e5f\u4e0d\u4ee3\u8868\u76ee\u6807\u7aef\u53e3\u5f00\u653e\u3002<\/p>\n<pre><code># macOS \/ Linux\nnc -vz -w 5 203.0.113.10 22\n\n# Windows PowerShell\nTest-NetConnection 203.0.113.10 -Port 22\n<\/code><\/pre>\n<p>\u518d\u7528\u624b\u673a\u70ed\u70b9\u6216\u53e6\u4e00\u5bb6\u7f51\u7edc\u590d\u6d4b\u3002\u5982\u679c\u53ea\u6709\u4e00\u4e2a\u6765\u6e90\u5931\u8d25\uff0c\u5e94\u68c0\u67e5\u516c\u53f8\u51fa\u53e3\u3001\u8fd0\u8425\u5546\u3001\u672c\u5730\u9632\u706b\u5899\u3001\u8bbf\u95ee\u767d\u540d\u5355\u6216 Fail2ban\uff1b\u5982\u679c\u6240\u6709\u6765\u6e90\u90fd\u5931\u8d25\uff0c\u518d\u68c0\u67e5\u670d\u52a1\u5668\u4fa7\u3002\u6574\u673a\u53ef\u8fbe\u6027\u6d41\u7a0b\u89c1<a href=\"https:\/\/www.ygcloud.com\/knowledge\/143\/\">\u4e91\u670d\u52a1\u5668 IP \u8fde\u63a5\u4e0d\u4e0a\u6392\u67e5<\/a>\u3002<\/p>\n<h2>\u7b2c\u56db\u6b65\uff1a\u68c0\u67e5\u4e91\u5b89\u5168\u7ec4\u548c\u7cfb\u7edf\u9632\u706b\u5899<\/h2>\n<p>\u4e91\u5b89\u5168\u7ec4\u4e0e\u64cd\u4f5c\u7cfb\u7edf\u9632\u706b\u5899\u662f\u4e24\u5c42\u63a7\u5236\uff0c\u76ee\u6807 TCP \u7aef\u53e3\u5fc5\u987b\u5728\u4e24\u5c42\u90fd\u5141\u8bb8\u3002\u7ba1\u7406\u7aef\u53e3\u4f18\u5148\u53ea\u5141\u8bb8\u7ba1\u7406\u5458\u56fa\u5b9a\u516c\u7f51 IP\u3001\u529e\u516c\u51fa\u53e3\u3001\u5821\u5792\u673a\u6216\u4f01\u4e1a VPN \u5730\u5740\u6bb5\uff0c\u4e0d\u8981\u4e3a\u4e86\u6392\u67e5\u957f\u671f\u8bbe\u7f6e <code>0.0.0.0\/0<\/code> \u6216 <code>::\/0<\/code>\u3002<\/p>\n<p>\u5728\u63a7\u5236\u53f0\u8fde\u63a5\u4e2d\u68c0\u67e5\uff1a<\/p>\n<pre><code># Ubuntu \/ Debian \u5e38\u89c1\nsudo ufw status verbose\n\n# RHEL \u7cfb\u5e38\u89c1\nsudo firewall-cmd --list-all\n\n# \u67e5\u770b\u5185\u6838\u89c4\u5219\uff08\u6309\u7cfb\u7edf\u5b9e\u9645\u5de5\u5177\uff09\nsudo nft list ruleset\n<\/code><\/pre>\n<p>\u89c4\u5219\u8bbe\u8ba1\u548c\u6765\u6e90\u9650\u5236\u89c1<a href=\"https:\/\/www.ygcloud.com\/knowledge\/1434\/\">\u4e91\u670d\u52a1\u5668\u5b89\u5168\u7ec4\u914d\u7f6e\u6307\u5357<\/a>\u3002\u4e0d\u8981\u901a\u8fc7\u505c\u7528\u6574\u4e2a\u9632\u706b\u5899\u6765\u201c\u8bc1\u660e\u95ee\u9898\u201d\uff0c\u5e94\u8bfb\u53d6\u547d\u4e2d\u89c4\u5219\u548c\u65e5\u5fd7\uff0c\u6dfb\u52a0\u8303\u56f4\u6700\u5c0f\u3001\u53ef\u56de\u9000\u7684\u4e34\u65f6\u89c4\u5219\u3002<\/p>\n<figure>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1593\" src=\"https:\/\/www.ygcloud.com\/knowledge\/wp-content\/uploads\/2026\/05\/9213587345b3952-1.jpg\" alt=\"SSH\u5b89\u5168\u7ec4\u7cfb\u7edf\u9632\u706b\u5899\u4e0esshd\u76d1\u542c\u94fe\u8def\" width=\"600\" height=\"335\" srcset=\"https:\/\/www.ygcloud.com\/knowledge\/wp-content\/uploads\/2026\/05\/9213587345b3952-1.jpg 1024w, https:\/\/www.ygcloud.com\/knowledge\/wp-content\/uploads\/2026\/05\/9213587345b3952-1-300x168.jpg 300w, https:\/\/www.ygcloud.com\/knowledge\/wp-content\/uploads\/2026\/05\/9213587345b3952-1-768x429.jpg 768w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><figcaption>SSH \u9700\u8981\u7f51\u7edc\u5165\u53e3\u3001\u4e24\u5c42\u89c4\u5219\u3001\u76d1\u542c\u670d\u52a1\u548c\u8ba4\u8bc1\u7b56\u7565\u540c\u65f6\u6b63\u786e\u3002<\/figcaption><\/figure>\n<h2>\u7b2c\u4e94\u6b65\uff1a\u4ece\u4e91\u63a7\u5236\u53f0\u68c0\u67e5 sshd<\/h2>\n<p>\u4f7f\u7528\u4f9b\u5e94\u5546\u63d0\u4f9b\u7684 Web Console\u3001VNC\u3001\u4e32\u53e3\u63a7\u5236\u53f0\u6216\u6551\u63f4\u6a21\u5f0f\u8fdb\u5165\u7cfb\u7edf\u3002\u4e0d\u540c\u53d1\u884c\u7248\u7684\u670d\u52a1\u5355\u5143\u53ef\u80fd\u53eb <code>ssh<\/code> \u6216 <code>sshd<\/code>\uff1a<\/p>\n<pre><code>sudo systemctl status ssh\nsudo systemctl status sshd\nsudo ss -lntp\nsudo sshd -T | grep -E '^(port|listenaddress|passwordauthentication|pubkeyauthentication|permitrootlogin)'\n<\/code><\/pre>\n<p>\u786e\u8ba4 sshd \u6b63\u5728\u8fd0\u884c\u3001\u76d1\u542c\u9884\u671f\u7aef\u53e3\u548c\u7f51\u5361\u3002\u53ea\u76d1\u542c <code>127.0.0.1<\/code> \u6216\u9519\u8bef\u7684 IPv6\/IPv4 \u5730\u5740\u65f6\uff0c\u5916\u90e8\u65e0\u6cd5\u8fde\u63a5\u3002\u4fee\u6539 <code>sshd_config<\/code> \u524d\u4fdd\u7559\u63a7\u5236\u53f0\u548c\u5f53\u524d SSH \u4f1a\u8bdd\uff0c\u5907\u4efd\u914d\u7f6e\uff0c\u5e76\u5148\u6267\u884c\uff1a<\/p>\n<pre><code>sudo sshd -t\n<\/code><\/pre>\n<p>\u53ea\u6709\u8bed\u6cd5\u68c0\u67e5\u6210\u529f\u624d reload \u5bf9\u5e94\u670d\u52a1\uff0c\u518d\u4ece\u7b2c\u4e8c\u4e2a\u7ec8\u7aef\u6d4b\u8bd5\u65b0\u4f1a\u8bdd\uff1b\u65b0\u4f1a\u8bdd\u6210\u529f\u524d\u4e0d\u8981\u5173\u95ed\u539f\u4f1a\u8bdd\u3002\u4e0d\u8981\u76f4\u63a5\u91cd\u542f\u6574\u53f0 VPS\u3002\u5177\u4f53\u914d\u7f6e\u9879\u4ee5<a href=\"https:\/\/man.openbsd.org\/sshd_config\">OpenSSH sshd_config \u624b\u518c<\/a>\u548c\u5f53\u524d\u53d1\u884c\u7248\u6587\u6863\u4e3a\u51c6\u3002<\/p>\n<h2>\u7b2c\u516d\u6b65\uff1a\u6309 Permission denied \u6392\u67e5\u8ba4\u8bc1<\/h2>\n<p>\u5148\u4ece\u9519\u8bef\u672b\u5c3e\u786e\u8ba4\u670d\u52a1\u7aef\u63a5\u53d7\u54ea\u4e9b\u8ba4\u8bc1\u65b9\u5f0f\u3002\u516c\u94a5\u767b\u5f55\u91cd\u70b9\u68c0\u67e5\uff1a<\/p>\n<ul>\n<li>\u672c\u5730 <code>-i<\/code> \u6307\u5411\u6b63\u786e\u79c1\u94a5\uff0c\u4e0d\u8981\u628a <code>.pub<\/code> \u516c\u94a5\u6587\u4ef6\u5f53\u79c1\u94a5\uff1b<\/li>\n<li>\u76ee\u6807\u7528\u6237\u6b63\u786e\uff0c\u516c\u94a5\u5728\u8be5\u7528\u6237\u7684 <code>~\/.ssh\/authorized_keys<\/code> \u4e2d\uff1b<\/li>\n<li>\u76ee\u5f55\u548c\u6587\u4ef6\u5f52\u76ee\u6807\u7528\u6237\u6240\u6709\uff0c<code>~\/.ssh<\/code> \u901a\u5e38\u4e0d\u5e94\u5141\u8bb8\u5176\u4ed6\u7528\u6237\u5199\u5165\uff1b<\/li>\n<li>SELinux\u3001\u96c6\u4e2d\u8d26\u53f7\u3001AuthorizedKeysCommand \u6216\u4e91\u521d\u59cb\u5316\u662f\u5426\u6539\u53d8\u4e86\u516c\u94a5\u6765\u6e90\uff1b<\/li>\n<li>\u670d\u52a1\u7aef\u662f\u5426\u901a\u8fc7 Match \u5757\u3001AllowUsers\u3001PermitRootLogin \u7b49\u9650\u5236\u8be5\u7528\u6237\uff1b<\/li>\n<li>\u5ba2\u6237\u7aef\u662f\u5426\u88ab ssh-agent \u4e2d\u7684\u5176\u4ed6\u5bc6\u94a5\u5e72\u6270\u3002<\/li>\n<\/ul>\n<p>\u53ef\u663e\u5f0f\u9650\u5236\u5ba2\u6237\u7aef\u53ea\u5c1d\u8bd5\u6307\u5b9a\u5bc6\u94a5\uff1a<\/p>\n<pre><code>ssh -o IdentitiesOnly=yes -i ~\/.ssh\/id_ed25519 -p 22 user@203.0.113.10\n<\/code><\/pre>\n<p>\u4e0d\u8981\u4e3a\u4e86\u5b9a\u4f4d\u516c\u94a5\u95ee\u9898\u4e34\u65f6\u5411\u516c\u7f51\u5f00\u542f\u5bc6\u7801\u767b\u5f55\uff0c\u66f4\u4e0d\u8981\u5173\u95ed\u73b0\u6709\u5bc6\u94a5\u8ba4\u8bc1\u3002\u82e5\u4e1a\u52a1\u786e\u9700\u5bc6\u7801\u8ba4\u8bc1\uff0c\u5e94\u5728\u53d7\u9650\u6765\u6e90\u3001\u5f3a\u5bc6\u7801\u3001\u901f\u7387\u9650\u5236\u548c\u76d1\u63a7\u4e0b\u5355\u72ec\u8bc4\u4f30\u3002<\/p>\n<h2>\u7b2c\u4e03\u6b65\uff1a\u67e5\u770b\u670d\u52a1\u7aef\u65e5\u5fd7<\/h2>\n<pre><code># systemd \u65e5\u5fd7\nsudo journalctl -u ssh --since \"30 minutes ago\"\nsudo journalctl -u sshd --since \"30 minutes ago\"\n\n# \u5e38\u89c1\u6587\u4ef6\u65e5\u5fd7\uff0c\u5b9e\u9645\u8def\u5f84\u56e0\u53d1\u884c\u7248\u800c\u5f02\nsudo tail -n 100 \/var\/log\/auth.log\nsudo tail -n 100 \/var\/log\/secure\n<\/code><\/pre>\n<p>\u5173\u6ce8\u65e0\u6548\u7528\u6237\u3001\u516c\u94a5\u6743\u9650\u3001\u8ba4\u8bc1\u7b56\u7565\u3001PAM\u3001\u8d26\u53f7\u9501\u5b9a\u3001\u78c1\u76d8\u6ee1\u3001\u5185\u5b58\u4e0d\u8db3\u3001Fail2ban \u548c\u8fde\u63a5\u901f\u7387\u9650\u5236\u3002\u65e5\u5fd7\u6ca1\u6709\u4efb\u4f55\u5bf9\u5e94\u8fde\u63a5\u8bb0\u5f55\uff0c\u901a\u5e38\u8bf4\u660e\u8bf7\u6c42\u8fd8\u672a\u5230 sshd\uff0c\u5e94\u56de\u5230\u7f51\u7edc\u3001\u5b89\u5168\u7ec4\u548c\u9632\u706b\u5899\u5c42\u3002<\/p>\n<h2>\u4e3b\u673a\u6307\u7eb9\u53d8\u5316\u600e\u4e48\u5904\u7406\uff1f<\/h2>\n<p><code>REMOTE HOST IDENTIFICATION HAS CHANGED<\/code> \u662f\u9632\u6b62\u4e2d\u95f4\u4eba\u653b\u51fb\u7684\u91cd\u8981\u544a\u8b66\uff0c\u4e0d\u80fd\u770b\u5230\u63d0\u793a\u5c31\u76f4\u63a5\u5220\u9664 <code>known_hosts<\/code>\u3002\u5148\u901a\u8fc7\u4e91\u63a7\u5236\u53f0\u6216\u53e6\u4e00\u6761\u53ef\u4fe1\u6e20\u9053\u67e5\u770b\u670d\u52a1\u5668\u4e3b\u673a\u516c\u94a5\u6307\u7eb9\uff1a<\/p>\n<pre><code>sudo ssh-keygen -lf \/etc\/ssh\/ssh_host_ed25519_key.pub\n<\/code><\/pre>\n<p>\u53ea\u6709\u786e\u8ba4\u5b9e\u4f8b\u786e\u5b9e\u91cd\u88c5\u3001\u66f4\u6362\u5e76\u4e14\u65b0\u6307\u7eb9\u5339\u914d\u540e\uff0c\u624d\u4ece\u672c\u5730\u79fb\u9664\u8be5\u4e3b\u673a\u7684\u65e7\u8bb0\u5f55\u5e76\u91cd\u65b0\u8fde\u63a5\u3002OpenSSH \u6587\u6863\u4e5f\u8bf4\u660e\uff0c\u4e3b\u673a\u8eab\u4efd\u53d8\u5316\u65f6\u5ba2\u6237\u7aef\u4f1a\u8b66\u544a\u5e76\u9650\u5236\u8ba4\u8bc1\u4ee5\u9632\u5192\u5145\u3002<\/p>\n<h2>\u5b8c\u5168\u5931\u8054\u65f6\u7684\u6062\u590d\u987a\u5e8f<\/h2>\n<ol>\n<li>\u4fdd\u5b58\u6545\u969c\u65f6\u95f4\u3001IP\u3001\u7aef\u53e3\u3001\u9519\u8bef\u3001\u5ba2\u6237\u7aef\u7f51\u7edc\u548c\u6700\u8fd1\u53d8\u66f4\uff1b<\/li>\n<li>\u4f7f\u7528\u63a7\u5236\u53f0\u8fde\u63a5\uff0c\u4e0d\u5148\u91cd\u88c5\u7cfb\u7edf\uff1b<\/li>\n<li>\u68c0\u67e5\u78c1\u76d8\u3001\u5185\u5b58\u3001\u7f51\u7edc\u914d\u7f6e\u3001sshd \u72b6\u6001\u548c\u9632\u706b\u5899\u65e5\u5fd7\uff1b<\/li>\n<li>\u56de\u9000\u6700\u8fd1\u7684 SSH\u3001\u5b89\u5168\u7ec4\u3001\u7f51\u7edc\u6216\u7cfb\u7edf\u53d8\u66f4\uff1b<\/li>\n<li>\u63a7\u5236\u53f0\u4e0d\u53ef\u7528\u65f6\uff0c\u8be2\u95ee\u662f\u5426\u652f\u6301\u6551\u63f4\u7cfb\u7edf\u6216\u6302\u8f7d\u7cfb\u7edf\u76d8\u4fee\u590d\uff1b<\/li>\n<li>\u6d89\u53ca\u5bbf\u4e3b\u673a\u6216\u5e73\u53f0\u7f51\u7edc\u65f6\uff0c\u643a\u5e26\u8bc1\u636e\u63d0\u4ea4\u652f\u6301\u5de5\u5355\uff1b<\/li>\n<li>\u6062\u590d\u540e\u8865\u76d1\u63a7\u3001\u5907\u7528\u7ba1\u7406\u5458\u5bc6\u94a5\u548c\u53d8\u66f4\u8bb0\u5f55\u3002<\/li>\n<\/ol>\n<p>\u5f3a\u5236\u91cd\u542f\u53ef\u80fd\u4e22\u5931\u5185\u5b58\u6570\u636e\u6216\u6269\u5927\u6587\u4ef6\u7cfb\u7edf\u95ee\u9898\uff0c\u5e94\u5148\u6309<a href=\"https:\/\/www.ygcloud.com\/knowledge\/1444\/\">\u670d\u52a1\u5668\u5361\u4f4f\u4e0e\u91cd\u542f\u524d\u68c0\u67e5<\/a>\u8bc4\u4f30\u3002<\/p>\n<h2>\u4fee\u590d\u540e\u7684\u5b89\u5168\u9a8c\u6536<\/h2>\n<ul>\n<li>\u4ece\u6388\u6743\u7f51\u7edc\u65b0\u5efa SSH \u4f1a\u8bdd\u6210\u529f\uff0c\u539f\u6709\u4f1a\u8bdd\u4e5f\u6b63\u5e38\uff1b<\/li>\n<li>\u4e0d\u518d\u9700\u8981\u7684\u4e34\u65f6\u89c4\u5219\u3001\u4e34\u65f6\u8d26\u53f7\u548c\u8c03\u8bd5\u65e5\u5fd7\u5df2\u64a4\u56de\uff1b<\/li>\n<li>\u5b89\u5168\u7ec4\u53ea\u5141\u8bb8\u5fc5\u8981\u6765\u6e90\u548c\u5b9e\u9645\u7aef\u53e3\uff1b<\/li>\n<li>\u516c\u94a5\u3001\u4e3b\u673a\u6307\u7eb9\u3001\u8d26\u53f7\u6743\u9650\u548c\u65e5\u5fd7\u7b26\u5408\u9884\u671f\uff1b<\/li>\n<li>\u5bc6\u7801\u767b\u5f55\u3001root \u767b\u5f55\u548c\u7aef\u53e3\u8f6c\u53d1\u6309\u4e1a\u52a1\u6700\u5c0f\u5316\uff1b<\/li>\n<li>\u66b4\u529b\u5c1d\u8bd5\u3001\u670d\u52a1\u505c\u6b62\u548c\u8d44\u6e90\u8017\u5c3d\u5df2\u6709\u544a\u8b66\uff1b<\/li>\n<li>\u5907\u7528\u63a7\u5236\u53f0\u4e0e\u6062\u590d\u6b65\u9aa4\u7ecf\u8fc7\u4e00\u6b21\u6f14\u7ec3\u3002<\/li>\n<\/ul>\n<h2>\u4ec0\u4e48\u65f6\u5019\u624d\u9700\u8981\u65b0\u5efa\u670d\u52a1\u5668\uff1f<\/h2>\n<p>\u7aef\u53e3\u3001\u5bc6\u94a5\u548c sshd \u914d\u7f6e\u95ee\u9898\u901a\u5e38\u4e0d\u9700\u8981\u6362 VPS\u3002\u53ea\u6709\u7cfb\u7edf\u4e25\u91cd\u635f\u574f\u4e14\u65e0\u6cd5\u5b89\u5168\u6062\u590d\u3001\u65e7\u7cfb\u7edf\u505c\u6b62\u7ef4\u62a4\uff0c\u6216\u73b0\u6709\u8282\u70b9\u7f51\u7edc\u957f\u671f\u4e0d\u6ee1\u8db3\u4e1a\u52a1\u65f6\uff0c\u624d\u5148\u5907\u4efd\u6570\u636e\u5e76\u9a8c\u8bc1\u6062\u590d\uff0c\u518d\u8fc1\u79fb\u3002\u9700\u8981\u9694\u79bb\u7684\u6062\u590d\u6216\u66ff\u6362\u73af\u5883\u65f6\uff0c\u53ef\u5230<a href=\"https:\/\/www.ygcloud.com\/vps\/\">\u8424\u5149\u4e91 VPS \u4ea7\u54c1\u9875<\/a>\u6838\u5bf9\u5f53\u524d\u5730\u57df\u3001\u7cfb\u7edf\u548c\u914d\u7f6e\uff0c\u5e76\u6309<a href=\"https:\/\/www.ygcloud.com\/knowledge\/857\/\">VPS \u914d\u7f6e\u9009\u62e9\u6307\u5357<\/a>\u786e\u5b9a\u8d44\u6e90\u3002<\/p>\n<h2>\u5e38\u89c1\u95ee\u9898<\/h2>\n<h3>Ping \u901a\u4f46 SSH \u8d85\u65f6\u662f\u4ec0\u4e48\u539f\u56e0\uff1f<\/h3>\n<p>ICMP \u53ef\u8fbe\u4e0d\u4ee3\u8868 TCP \u7aef\u53e3\u53ef\u8fbe\u3002\u4f18\u5148\u68c0\u67e5\u76ee\u6807\u7aef\u53e3\u3001\u5b89\u5168\u7ec4\u3001\u9632\u706b\u5899\u3001\u76d1\u542c\u5730\u5740\u548c\u5ba2\u6237\u7aef\u6765\u6e90\u9650\u5236\u3002<\/p>\n<h3>\u6539 SSH \u7aef\u53e3\u80fd\u9632\u653b\u51fb\u5417\uff1f<\/h3>\n<p>\u53ef\u51cf\u5c11\u90e8\u5206\u81ea\u52a8\u626b\u63cf\u566a\u58f0\uff0c\u4f46\u4e0d\u80fd\u66ff\u4ee3\u6765\u6e90\u9650\u5236\u3001\u5bc6\u94a5\u8ba4\u8bc1\u3001\u6700\u5c0f\u6743\u9650\u3001\u66f4\u65b0\u548c\u76d1\u63a7\u3002<\/p>\n<h3>\u91cd\u88c5\u540e\u4e3a\u4ec0\u4e48\u63d0\u793a\u4e3b\u673a\u5bc6\u94a5\u53d8\u5316\uff1f<\/h3>\n<p>\u91cd\u88c5\u901a\u5e38\u4f1a\u751f\u6210\u65b0\u4e3b\u673a\u5bc6\u94a5\u3002\u5fc5\u987b\u5148\u901a\u8fc7\u53ef\u4fe1\u63a7\u5236\u53f0\u6838\u5bf9\u6307\u7eb9\uff0c\u518d\u66f4\u65b0\u672c\u5730\u8bb0\u5f55\u3002<\/p>\n<h2>\u76f8\u5173\u63a8\u8350<\/h2>\n<ul>\n<li><a href=\"https:\/\/www.ygcloud.com\/knowledge\/1368\/\">\u670d\u52a1\u5668\u7aef\u53e3\u4e0d\u901a\u6392\u67e5<\/a><\/li>\n<li><a href=\"https:\/\/www.ygcloud.com\/knowledge\/279\/\">VPS \u5e38\u7528\u7aef\u53e3\u4e0e\u5f00\u653e\u539f\u5219<\/a><\/li>\n<li><a href=\"https:\/\/www.ygcloud.com\/knowledge\/888\/\">\u65b0\u670d\u52a1\u5668\u5b89\u5168\u52a0\u56fa\u6e05\u5355<\/a><\/li>\n<li><a href=\"https:\/\/www.ygcloud.com\/knowledge\/1380\/\">\u7ad9\u70b9\u4e0e\u670d\u52a1\u5668\u76d1\u63a7\u6307\u5357<\/a><\/li>\n<\/ul>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>\u5148\u8bf4\u7ed3\u8bba\uff1aSSH \u8fde\u4e0d\u4e0a\u65f6\uff0c\u5148\u4fdd\u5b58\u5b8c\u6574\u62a5\u9519\uff0c\u518d\u6309\u201c\u5730\u5740\u4e0e\u7f51\u7edc \u2192 TCP \u7aef\u53e3 \u2192 \u5b89\u5168\u7ec4\/\u9632\u706b\u5899 \u2192 sshd \u670d\u52a1 \u2192 \u7528\u6237\u4e0e\u5bc6\u94a5 \u2192 \u4e3b\u673a\u6307\u7eb9\u201d\u9010\u5c42\u6392\u67e5\u3002Connection timed out\u3001Connection refused\u3001&#8230;<\/p>\n","protected":false},"author":1,"featured_media":1321,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[39],"tags":[],"topic":[],"class_list":["post-1320","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-support"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>SSH\u8fde\u4e0d\u4e0a\u670d\u52a1\u5668\u600e\u4e48\u529e\uff1f\u6309\u62a5\u9519\u6392\u67e5\u7aef\u53e3\u3001\u5bc6\u94a5\u4e0e\u670d\u52a1<\/title>\n<meta name=\"description\" content=\"SSH\u8fde\u4e0d\u4e0a\u670d\u52a1\u5668\u600e\u4e48\u529e\uff1f\u672c\u6587\u6309\u8d85\u65f6\u3001\u62d2\u7edd\u3001Permission denied\u548c\u4e3b\u673a\u5bc6\u94a5\u544a\u8b66\uff0c\u6392\u67e5IP\u3001\u7aef\u53e3\u3001\u5b89\u5168\u7ec4\u3001sshd\u3001\u5bc6\u94a5\u3001\u8d26\u53f7\u3001\u65e5\u5fd7\u4e0e\u6062\u590d\u3002\" \/>\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.ygcloud.com\/knowledge\/1320\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SSH\u8fde\u4e0d\u4e0a\u670d\u52a1\u5668\u600e\u4e48\u529e\uff1f\u6309\u62a5\u9519\u6392\u67e5\u7aef\u53e3\u3001\u5bc6\u94a5\u4e0e\u670d\u52a1\" \/>\n<meta property=\"og:description\" content=\"SSH\u8fde\u4e0d\u4e0a\u670d\u52a1\u5668\u600e\u4e48\u529e\uff1f\u672c\u6587\u6309\u8d85\u65f6\u3001\u62d2\u7edd\u3001Permission denied\u548c\u4e3b\u673a\u5bc6\u94a5\u544a\u8b66\uff0c\u6392\u67e5IP\u3001\u7aef\u53e3\u3001\u5b89\u5168\u7ec4\u3001sshd\u3001\u5bc6\u94a5\u3001\u8d26\u53f7\u3001\u65e5\u5fd7\u4e0e\u6062\u590d\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.ygcloud.com\/knowledge\/1320\/\" \/>\n<meta property=\"og:site_name\" content=\"VPS\u77e5\u8bc6\u5206\u4eab\u7ad9\" \/>\n<meta property=\"article:published_time\" content=\"2026-03-20T07:36:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-07-24T10:30:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.ygcloud.com\/knowledge\/wp-content\/uploads\/2026\/03\/ab7f5c9bf067fe9.png\" \/>\n\t<meta property=\"og:image:width\" content=\"585\" \/>\n\t<meta property=\"og:image:height\" content=\"379\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"\u6d77\u5916VPS\u63a8\u8350\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6d77\u5916VPS\u63a8\u8350\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.ygcloud.com\\\/knowledge\\\/1320\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.ygcloud.com\\\/knowledge\\\/1320\\\/\"},\"author\":{\"name\":\"\u6d77\u5916VPS\u63a8\u8350\",\"@id\":\"https:\\\/\\\/www.ygcloud.com\\\/knowledge\\\/#\\\/schema\\\/person\\\/601f21f360aeefaddbdfd0f14953d704\"},\"headline\":\"SSH\u8fde\u4e0d\u4e0a\u670d\u52a1\u5668\u600e\u4e48\u529e\uff1f\u6309\u62a5\u9519\u6392\u67e5\u7aef\u53e3\u3001\u5bc6\u94a5\u4e0e\u670d\u52a1\",\"datePublished\":\"2026-03-20T07:36:25+00:00\",\"dateModified\":\"2026-07-24T10:30:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.ygcloud.com\\\/knowledge\\\/1320\\\/\"},\"wordCount\":99,\"image\":{\"@id\":\"https:\\\/\\\/www.ygcloud.com\\\/knowledge\\\/1320\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.ygcloud.com\\\/knowledge\\\/wp-content\\\/uploads\\\/2026\\\/03\\\/ab7f5c9bf067fe9.png\",\"articleSection\":[\"\u652f\u6301\u6587\u6863\"],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.ygcloud.com\\\/knowledge\\\/1320\\\/\",\"url\":\"https:\\\/\\\/www.ygcloud.com\\\/knowledge\\\/1320\\\/\",\"name\":\"SSH\u8fde\u4e0d\u4e0a\u670d\u52a1\u5668\u600e\u4e48\u529e\uff1f\u6309\u62a5\u9519\u6392\u67e5\u7aef\u53e3\u3001\u5bc6\u94a5\u4e0e\u670d\u52a1\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.ygcloud.com\\\/knowledge\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.ygcloud.com\\\/knowledge\\\/1320\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.ygcloud.com\\\/knowledge\\\/1320\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.ygcloud.com\\\/knowledge\\\/wp-content\\\/uploads\\\/2026\\\/03\\\/ab7f5c9bf067fe9.png\",\"datePublished\":\"2026-03-20T07:36:25+00:00\",\"dateModified\":\"2026-07-24T10:30:49+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.ygcloud.com\\\/knowledge\\\/#\\\/schema\\\/person\\\/601f21f360aeefaddbdfd0f14953d704\"},\"description\":\"SSH\u8fde\u4e0d\u4e0a\u670d\u52a1\u5668\u600e\u4e48\u529e\uff1f\u672c\u6587\u6309\u8d85\u65f6\u3001\u62d2\u7edd\u3001Permission denied\u548c\u4e3b\u673a\u5bc6\u94a5\u544a\u8b66\uff0c\u6392\u67e5IP\u3001\u7aef\u53e3\u3001\u5b89\u5168\u7ec4\u3001sshd\u3001\u5bc6\u94a5\u3001\u8d26\u53f7\u3001\u65e5\u5fd7\u4e0e\u6062\u590d\u3002\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.ygcloud.com\\\/knowledge\\\/1320\\\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.ygcloud.com\\\/knowledge\\\/1320\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/www.ygcloud.com\\\/knowledge\\\/1320\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.ygcloud.com\\\/knowledge\\\/wp-content\\\/uploads\\\/2026\\\/03\\\/ab7f5c9bf067fe9.png\",\"contentUrl\":\"https:\\\/\\\/www.ygcloud.com\\\/knowledge\\\/wp-content\\\/uploads\\\/2026\\\/03\\\/ab7f5c9bf067fe9.png\",\"width\":585,\"height\":379},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.ygcloud.com\\\/knowledge\\\/1320\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.ygcloud.com\\\/knowledge\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SSH\u8fde\u4e0d\u4e0a\u670d\u52a1\u5668\u600e\u4e48\u529e\uff1f\u6309\u62a5\u9519\u6392\u67e5\u7aef\u53e3\u3001\u5bc6\u94a5\u4e0e\u670d\u52a1\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.ygcloud.com\\\/knowledge\\\/#website\",\"url\":\"https:\\\/\\\/www.ygcloud.com\\\/knowledge\\\/\",\"name\":\"VPS\u77e5\u8bc6\u5206\u4eab\u7ad9\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.ygcloud.com\\\/knowledge\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.ygcloud.com\\\/knowledge\\\/#\\\/schema\\\/person\\\/601f21f360aeefaddbdfd0f14953d704\",\"name\":\"\u6d77\u5916VPS\u63a8\u8350\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/cravatar.cn\\\/avatar\\\/795bcb4bf560f9867afb3de2d0d3a94976324007c45ea099ec14e90231540547?s=96&d=mystery\",\"url\":\"https:\\\/\\\/cravatar.cn\\\/avatar\\\/795bcb4bf560f9867afb3de2d0d3a94976324007c45ea099ec14e90231540547?s=96&d=mystery\",\"contentUrl\":\"https:\\\/\\\/cravatar.cn\\\/avatar\\\/795bcb4bf560f9867afb3de2d0d3a94976324007c45ea099ec14e90231540547?s=96&d=mystery\",\"caption\":\"\u6d77\u5916VPS\u63a8\u8350\"},\"sameAs\":[\"https:\\\/\\\/www.ygcloud.com\\\/\"],\"url\":\"https:\\\/\\\/www.ygcloud.com\\\/knowledge\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SSH\u8fde\u4e0d\u4e0a\u670d\u52a1\u5668\u600e\u4e48\u529e\uff1f\u6309\u62a5\u9519\u6392\u67e5\u7aef\u53e3\u3001\u5bc6\u94a5\u4e0e\u670d\u52a1","description":"SSH\u8fde\u4e0d\u4e0a\u670d\u52a1\u5668\u600e\u4e48\u529e\uff1f\u672c\u6587\u6309\u8d85\u65f6\u3001\u62d2\u7edd\u3001Permission denied\u548c\u4e3b\u673a\u5bc6\u94a5\u544a\u8b66\uff0c\u6392\u67e5IP\u3001\u7aef\u53e3\u3001\u5b89\u5168\u7ec4\u3001sshd\u3001\u5bc6\u94a5\u3001\u8d26\u53f7\u3001\u65e5\u5fd7\u4e0e\u6062\u590d\u3002","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.ygcloud.com\/knowledge\/1320\/","og_locale":"zh_CN","og_type":"article","og_title":"SSH\u8fde\u4e0d\u4e0a\u670d\u52a1\u5668\u600e\u4e48\u529e\uff1f\u6309\u62a5\u9519\u6392\u67e5\u7aef\u53e3\u3001\u5bc6\u94a5\u4e0e\u670d\u52a1","og_description":"SSH\u8fde\u4e0d\u4e0a\u670d\u52a1\u5668\u600e\u4e48\u529e\uff1f\u672c\u6587\u6309\u8d85\u65f6\u3001\u62d2\u7edd\u3001Permission denied\u548c\u4e3b\u673a\u5bc6\u94a5\u544a\u8b66\uff0c\u6392\u67e5IP\u3001\u7aef\u53e3\u3001\u5b89\u5168\u7ec4\u3001sshd\u3001\u5bc6\u94a5\u3001\u8d26\u53f7\u3001\u65e5\u5fd7\u4e0e\u6062\u590d\u3002","og_url":"https:\/\/www.ygcloud.com\/knowledge\/1320\/","og_site_name":"VPS\u77e5\u8bc6\u5206\u4eab\u7ad9","article_published_time":"2026-03-20T07:36:25+00:00","article_modified_time":"2026-07-24T10:30:49+00:00","og_image":[{"width":585,"height":379,"url":"https:\/\/www.ygcloud.com\/knowledge\/wp-content\/uploads\/2026\/03\/ab7f5c9bf067fe9.png","type":"image\/png"}],"author":"\u6d77\u5916VPS\u63a8\u8350","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u6d77\u5916VPS\u63a8\u8350","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.ygcloud.com\/knowledge\/1320\/#article","isPartOf":{"@id":"https:\/\/www.ygcloud.com\/knowledge\/1320\/"},"author":{"name":"\u6d77\u5916VPS\u63a8\u8350","@id":"https:\/\/www.ygcloud.com\/knowledge\/#\/schema\/person\/601f21f360aeefaddbdfd0f14953d704"},"headline":"SSH\u8fde\u4e0d\u4e0a\u670d\u52a1\u5668\u600e\u4e48\u529e\uff1f\u6309\u62a5\u9519\u6392\u67e5\u7aef\u53e3\u3001\u5bc6\u94a5\u4e0e\u670d\u52a1","datePublished":"2026-03-20T07:36:25+00:00","dateModified":"2026-07-24T10:30:49+00:00","mainEntityOfPage":{"@id":"https:\/\/www.ygcloud.com\/knowledge\/1320\/"},"wordCount":99,"image":{"@id":"https:\/\/www.ygcloud.com\/knowledge\/1320\/#primaryimage"},"thumbnailUrl":"https:\/\/www.ygcloud.com\/knowledge\/wp-content\/uploads\/2026\/03\/ab7f5c9bf067fe9.png","articleSection":["\u652f\u6301\u6587\u6863"],"inLanguage":"zh-Hans"},{"@type":"WebPage","@id":"https:\/\/www.ygcloud.com\/knowledge\/1320\/","url":"https:\/\/www.ygcloud.com\/knowledge\/1320\/","name":"SSH\u8fde\u4e0d\u4e0a\u670d\u52a1\u5668\u600e\u4e48\u529e\uff1f\u6309\u62a5\u9519\u6392\u67e5\u7aef\u53e3\u3001\u5bc6\u94a5\u4e0e\u670d\u52a1","isPartOf":{"@id":"https:\/\/www.ygcloud.com\/knowledge\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.ygcloud.com\/knowledge\/1320\/#primaryimage"},"image":{"@id":"https:\/\/www.ygcloud.com\/knowledge\/1320\/#primaryimage"},"thumbnailUrl":"https:\/\/www.ygcloud.com\/knowledge\/wp-content\/uploads\/2026\/03\/ab7f5c9bf067fe9.png","datePublished":"2026-03-20T07:36:25+00:00","dateModified":"2026-07-24T10:30:49+00:00","author":{"@id":"https:\/\/www.ygcloud.com\/knowledge\/#\/schema\/person\/601f21f360aeefaddbdfd0f14953d704"},"description":"SSH\u8fde\u4e0d\u4e0a\u670d\u52a1\u5668\u600e\u4e48\u529e\uff1f\u672c\u6587\u6309\u8d85\u65f6\u3001\u62d2\u7edd\u3001Permission denied\u548c\u4e3b\u673a\u5bc6\u94a5\u544a\u8b66\uff0c\u6392\u67e5IP\u3001\u7aef\u53e3\u3001\u5b89\u5168\u7ec4\u3001sshd\u3001\u5bc6\u94a5\u3001\u8d26\u53f7\u3001\u65e5\u5fd7\u4e0e\u6062\u590d\u3002","breadcrumb":{"@id":"https:\/\/www.ygcloud.com\/knowledge\/1320\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.ygcloud.com\/knowledge\/1320\/"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.ygcloud.com\/knowledge\/1320\/#primaryimage","url":"https:\/\/www.ygcloud.com\/knowledge\/wp-content\/uploads\/2026\/03\/ab7f5c9bf067fe9.png","contentUrl":"https:\/\/www.ygcloud.com\/knowledge\/wp-content\/uploads\/2026\/03\/ab7f5c9bf067fe9.png","width":585,"height":379},{"@type":"BreadcrumbList","@id":"https:\/\/www.ygcloud.com\/knowledge\/1320\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.ygcloud.com\/knowledge\/"},{"@type":"ListItem","position":2,"name":"SSH\u8fde\u4e0d\u4e0a\u670d\u52a1\u5668\u600e\u4e48\u529e\uff1f\u6309\u62a5\u9519\u6392\u67e5\u7aef\u53e3\u3001\u5bc6\u94a5\u4e0e\u670d\u52a1"}]},{"@type":"WebSite","@id":"https:\/\/www.ygcloud.com\/knowledge\/#website","url":"https:\/\/www.ygcloud.com\/knowledge\/","name":"VPS\u77e5\u8bc6\u5206\u4eab\u7ad9","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.ygcloud.com\/knowledge\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.ygcloud.com\/knowledge\/#\/schema\/person\/601f21f360aeefaddbdfd0f14953d704","name":"\u6d77\u5916VPS\u63a8\u8350","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/cravatar.cn\/avatar\/795bcb4bf560f9867afb3de2d0d3a94976324007c45ea099ec14e90231540547?s=96&d=mystery","url":"https:\/\/cravatar.cn\/avatar\/795bcb4bf560f9867afb3de2d0d3a94976324007c45ea099ec14e90231540547?s=96&d=mystery","contentUrl":"https:\/\/cravatar.cn\/avatar\/795bcb4bf560f9867afb3de2d0d3a94976324007c45ea099ec14e90231540547?s=96&d=mystery","caption":"\u6d77\u5916VPS\u63a8\u8350"},"sameAs":["https:\/\/www.ygcloud.com\/"],"url":"https:\/\/www.ygcloud.com\/knowledge\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.ygcloud.com\/knowledge\/wp-json\/wp\/v2\/posts\/1320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ygcloud.com\/knowledge\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ygcloud.com\/knowledge\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ygcloud.com\/knowledge\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ygcloud.com\/knowledge\/wp-json\/wp\/v2\/comments?post=1320"}],"version-history":[{"count":5,"href":"https:\/\/www.ygcloud.com\/knowledge\/wp-json\/wp\/v2\/posts\/1320\/revisions"}],"predecessor-version":[{"id":2254,"href":"https:\/\/www.ygcloud.com\/knowledge\/wp-json\/wp\/v2\/posts\/1320\/revisions\/2254"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ygcloud.com\/knowledge\/wp-json\/wp\/v2\/media\/1321"}],"wp:attachment":[{"href":"https:\/\/www.ygcloud.com\/knowledge\/wp-json\/wp\/v2\/media?parent=1320"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ygcloud.com\/knowledge\/wp-json\/wp\/v2\/categories?post=1320"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ygcloud.com\/knowledge\/wp-json\/wp\/v2\/tags?post=1320"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.ygcloud.com\/knowledge\/wp-json\/wp\/v2\/topic?post=1320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}