{"id":5629,"date":"2024-06-29T00:10:07","date_gmt":"2024-06-28T16:10:07","guid":{"rendered":"https:\/\/www.baishitou.cn\/?p=5629"},"modified":"2024-06-29T00:13:42","modified_gmt":"2024-06-28T16:13:42","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8-vultr-%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%b8%ad%e4%bd%bf%e7%94%a8-ssh","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/5629.html","title":{"rendered":"\u5982\u4f55\u5728 Vultr \u670d\u52a1\u5668\u4e2d\u4f7f\u7528 SSH"},"content":{"rendered":"

\"\"<\/a><\/p>\n

\u4ecb\u7ecd<\/h2>\n

SSH \u662f\u4e00\u79cd\u534f\u8bae\uff0c\u5141\u8bb8\u60a8\u4ece\u8fdc\u7a0b\u7cfb\u7edf\u8fde\u63a5\u5230\u57fa\u4e8e Linux \u6216 Unix \u7684\u670d\u52a1\u5668\u3002OpenSSH \u662f\u4e00\u79cd\u8fde\u63a5\u5de5\u5177\uff0c\u5b83\u4f7f\u7528 SSH \u534f\u8bae\u901a\u8fc7\u5b89\u5168\u5916\u58f3\u5728\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u4e4b\u95f4\u8fdb\u884c\u901a\u4fe1\u3002\u672c\u6307\u5357\u4ecb\u7ecd\u4e86\u5982\u4f55\u4f7f\u7528\u5bc6\u7801\u901a\u8fc7 SSH \u8fde\u63a5\u5230\u60a8\u7684 Vultr \u670d\u52a1\u5668\u6216\u4f7f\u7528 OpenSSH \u7684 SSH \u5bc6\u94a5\u3002\u5b83\u8fd8\u4ecb\u7ecd\u4e86\u5982\u4f55\u751f\u6210 SSH \u5bc6\u94a5\u5e76\u5c06\u5176\u624b\u52a8\u6dfb\u52a0\u5230\u670d\u52a1\u5668\u3002<\/p>\n

\u5982\u4f55\u4f7f\u7528\u5bc6\u7801\u8fde\u63a5<\/h2>\n

\u82e5\u8981\u4f7f\u7528 SSH \u5ba2\u6237\u7aef\u548c\u5bc6\u7801\u8fde\u63a5\u5230\u670d\u52a1\u5668\uff0c\u8bf7\u5728\u672c\u5730\u5de5\u4f5c\u7ad9\u4e0a\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\u5e76\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u3002\u5c06\u793a\u4f8b IP \u5730\u5740\u66ff\u6362\u4e3a\u670d\u52a1\u5668\u7684 IP \u5730\u5740\uff0c\u60a8\u53ef\u4ee5\u5728 Vultr \u5ba2\u6237\u95e8\u6237\u7684\u670d\u52a1\u5668\u4fe1\u606f\u9875\u9762\u4e0a\u627e\u5230\u8be5\u5730\u5740\u3002<\/p>\n

$ ssh root@192.0.2.123<\/code><\/pre>\n

SSH \u663e\u793a\u4e00\u6761\u8b66\u544a\u4ee5\u786e\u8ba4\u670d\u52a1\u5668\u7684\u771f\u5b9e\u6027\u3002\u952e\u5165\u5e76\u6309 \u3002\u60a8\u5c06\u770b\u5230\u5bc6\u7801\u63d0\u793a\u3002\u952e\u5165\u5bc6\u7801\uff0c\u7136\u540e\u6309 \u3002Yes<\/code>ENTER<\/kbd>ENTER<\/kbd><\/p>\n

\u6ce8\u610f\uff1a<\/strong>\u952e\u5165\u65f6\u5bc6\u7801\u5c06\u4e0d\u53ef\u89c1\u3002<\/p>\n

\u73b0\u5728\uff0c\u60a8\u5c06\u767b\u5f55\u5230\u670d\u52a1\u5668\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4\u4e0e\u670d\u52a1\u5668\u8fdb\u884c\u4ea4\u4e92\u3002<\/p>\n

\u4ec0\u4e48\u662f SSH \u5bc6\u94a5\u5bf9<\/h2>\n

SSH \u5bc6\u94a5\u5bf9\u5305\u542b\u516c\u94a5\u548c\u79c1\u94a5\u3002\u516c\u94a5\u5b58\u50a8\u5728\u670d\u52a1\u5668\u4e0a\uff0c\u79c1\u94a5\u5b58\u50a8\u5728\u5c06\u7528\u4e8e\u8fde\u63a5\u5230\u8fdc\u7a0b\u670d\u52a1\u5668\u7684\u672c\u5730\u8ba1\u7b97\u673a\u4e0a\u3002\u8fd9\u4e24\u4e2a\u5bc6\u94a5\u5bf9\u4e8e\u4f7f\u7528 SSH \u5bc6\u94a5\u901a\u8fc7 SSH \u8fde\u63a5\u5230\u670d\u52a1\u5668\u90fd\u662f\u5fc5\u9700\u7684\u3002<\/p>\n

\u5982\u4f55\u5728 Windows\u3001Linux\u3001Mac \u4e0a\u751f\u6210\u5bc6\u94a5<\/h2>\n

ssh-keygen<\/code>\u5b9e\u7528\u7a0b\u5e8f\u53ef\u7528\u4e8e\u751f\u6210 SSH \u5bc6\u94a5\u3002<\/p>\n

\u5982\u4f55\u4f7f\u7528\u547d\u4ee4ssh-keygen<\/code><\/h3>\n

\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5728 Windows\u3001Linux \u548c Mac \u4e2d\u751f\u6210\u5bc6\u94a5\u5bf9\u3002<\/p>\n

ssh-keygen -t ed25519 -C email@example.com<\/code><\/pre>\n

\u54ea\u91cc<\/p>\n