{"id":27678,"date":"2025-04-19T20:51:15","date_gmt":"2025-04-19T12:51:15","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/27678.html"},"modified":"2025-04-19T20:51:15","modified_gmt":"2025-04-19T12:51:15","slug":"c%e9%a1%b9%e7%9b%ae-%e9%9b%86%e7%be%a4%e8%81%8a%e5%a4%a9%e6%9c%8d%e5%8a%a1%e5%99%a8-%e9%a1%b9%e7%9b%ae%e7%ae%a1%e7%90%86%e4%bb%a5%e5%8f%8agithub%e6%89%98%e7%ae%a1","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/27678.html","title":{"rendered":"C++\u9879\u76ee | \u96c6\u7fa4\u804a\u5929\u670d\u52a1\u5668 | \u9879\u76ee\u7ba1\u7406\u4ee5\u53cagithub\u6258\u7ba1"},"content":{"rendered":"<h2>C&#043;&#043;\u9879\u76ee | \u96c6\u7fa4\u804a\u5929\u670d\u52a1\u5668 | \u9879\u76ee\u7ba1\u7406\u4ee5\u53cagithub\u6258\u7ba1<\/h2>\n<p>\u9879\u76ee\u7684github\u5730\u5740&#xff1a;DarlingGYQ\/chatserver: \u57fa\u4e8eC&#043;&#043;11\u7684\u53ef\u4ee5\u5de5\u4f5c\u5728nginx tcp\u8d1f\u8f7d\u5747\u8861\u73af\u5883\u4e2d\u7684\u96c6\u7fa4\u804a\u5929\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\u6e90\u7801 <\/p>\n<h4>\u6587\u7ae0\u76ee\u5f55<\/h4>\n<ul>\n<li>C&#043;&#043;\u9879\u76ee | \u96c6\u7fa4\u804a\u5929\u670d\u52a1\u5668 | \u9879\u76ee\u7ba1\u7406\u4ee5\u53cagithub\u6258\u7ba1<\/li>\n<li>\n<ul>\n<li>1.github\u4e2dssh key\u7533\u8bf7<\/li>\n<li>\n<ul>\n<li>1\u3001\u9996\u5148\u9700\u8981\u68c0\u67e5\u4f60\u7535\u8111\u662f\u5426\u5df2\u7ecf\u6709 SSH key<\/li>\n<li>2\u3001\u521b\u5efa\u4e00\u4e2a SSH key<\/li>\n<li>3\u3001\u83b7\u53d6ssh key\u516c\u94a5\u5185\u5bb9<\/li>\n<li>4\u3001GitHub\u8bbe\u7f6e\u4e2d\u6dfb\u52a0\u516c\u94a5<\/li>\n<li>5\u3001\u68c0\u67e5\u662f\u5426\u8bbe\u7f6e\u6210\u529f<\/li>\n<\/ul>\n<\/li>\n<li>2.git\u64cd\u4f5c<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>1.github\u4e2dssh key\u7533\u8bf7<\/h3>\n<h4>1\u3001\u9996\u5148\u9700\u8981\u68c0\u67e5\u4f60\u7535\u8111\u662f\u5426\u5df2\u7ecf\u6709 SSH key<\/h4>\n<p>\u8fd0\u884c git Bash \u5ba2\u6237\u7aef&#xff0c;\u8f93\u5165\u5982\u4e0b\u4ee3\u7801&#xff1a;<\/p>\n<p>$ cd ~\/.ssh<br \/>\n$ ls<\/p>\n<p>\u8fd9\u4e24\u4e2a\u547d\u4ee4\u5c31\u662f\u68c0\u67e5\u662f\u5426\u5df2\u7ecf\u5b58\u5728 id_rsa.pub \u6216 id_dsa.pub \u6587\u4ef6&#xff0c;\u5982\u679c\u6587\u4ef6\u5df2\u7ecf\u5b58\u5728&#xff0c;\u90a3\u4e48\u4f60\u53ef\u4ee5\u8df3\u8fc7\u6b65\u9aa42&#xff0c;\u76f4\u63a5\u8fdb\u5165\u6b65\u9aa43\u3002<\/p>\n<h4>2\u3001\u521b\u5efa\u4e00\u4e2a SSH key<\/h4>\n<p>$ ssh-keygen -t rsa -C &#034;your_email&#064;example.com&#034;<\/p>\n<p>\u4ee3\u7801\u53c2\u6570\u542b\u4e49&#xff1a;<\/p>\n<p>-t \u6307\u5b9a\u5bc6\u94a5\u7c7b\u578b&#xff0c;\u9ed8\u8ba4\u662f rsa &#xff0c;\u53ef\u4ee5\u7701\u7565\u3002 -C \u8bbe\u7f6e\u6ce8\u91ca\u6587\u5b57&#xff0c;\u6bd4\u5982\u90ae\u7bb1\u3002 -f \u6307\u5b9a\u5bc6\u94a5\u6587\u4ef6\u5b58\u50a8\u6587\u4ef6\u540d\u3002<\/p>\n<p>\u4ee5\u4e0a\u4ee3\u7801\u7701\u7565\u4e86 -f \u53c2\u6570&#xff0c;\u56e0\u6b64&#xff0c;\u8fd0\u884c\u4e0a\u9762\u90a3\u6761\u547d\u4ee4\u540e\u4f1a\u8ba9\u4f60\u8f93\u5165\u4e00\u4e2a\u6587\u4ef6\u540d&#xff0c;\u7528\u4e8e\u4fdd\u5b58\u521a\u624d\u751f\u6210\u7684 SSH key \u4ee3\u7801&#xff0c;\u5982&#xff1a;<\/p>\n<p>Generating public\/private rsa key pair.<br \/>\n# Enter file in which to save the key (\/c\/Users\/you\/.ssh\/id_rsa): [Press enter]<\/p>\n<p>\u5f53\u7136&#xff0c;\u4f60\u4e5f\u53ef\u4ee5\u4e0d\u8f93\u5165\u6587\u4ef6\u540d&#xff0c;\u4f7f\u7528\u9ed8\u8ba4\u6587\u4ef6\u540d&#xff08;\u63a8\u8350&#xff09;&#xff0c;\u90a3\u4e48\u5c31\u4f1a\u751f\u6210 id_rsa \u548c id_rsa.pub \u4e24\u4e2a\u79d8\u94a5\u6587\u4ef6\u3002<\/p>\n<p>\u63a5\u7740\u53c8\u4f1a\u63d0\u793a\u4f60\u8f93\u5165\u4e24\u6b21\u5bc6\u7801&#xff08;\u8be5\u5bc6\u7801\u662f\u4f60push\u6587\u4ef6\u7684\u65f6\u5019\u8981\u8f93\u5165\u7684\u5bc6\u7801&#xff0c;\u800c\u4e0d\u662fgithub\u7ba1\u7406\u8005\u7684\u5bc6\u7801&#xff09;&#xff0c;<\/p>\n<p>\u5f53\u7136&#xff0c;\u4f60\u4e5f\u53ef\u4ee5\u4e0d\u8f93\u5165\u5bc6\u7801&#xff0c;\u76f4\u63a5\u6309\u56de\u8f66\u3002\u90a3\u4e48push\u7684\u65f6\u5019\u5c31\u4e0d\u9700\u8981\u8f93\u5165\u5bc6\u7801&#xff0c;\u76f4\u63a5\u63d0\u4ea4\u5230github\u4e0a\u4e86&#xff0c;\u5982&#xff1a;<\/p>\n<p>Enter passphrase (empty for no passphrase):<br \/>\n# Enter same passphrase again:<\/p>\n<p>\u63a5\u4e0b\u6765&#xff0c;\u5c31\u4f1a\u663e\u793a\u5982\u4e0b\u4ee3\u7801\u63d0\u793a&#xff0c;\u5982&#xff1a;<\/p>\n<p>Your identification has been saved in \/c\/Users\/you\/.ssh\/id_rsa.<br \/>\n# Your public key has been saved in \/c\/Users\/you\/.ssh\/id_rsa.pub.<br \/>\n# The key fingerprint is:<br \/>\n# 01:0f:f4:3b:ca:85:d6:17:a1:7d:f0:68:9d:f0:a2:db your_email&#064;example.com<\/p>\n<p>\u5f53\u4f60\u770b\u5230\u4e0a\u9762\u8fd9\u6bb5\u4ee3\u7801\u7684\u6536&#xff0c;\u90a3\u5c31\u8bf4\u660e&#xff0c;\u4f60\u7684 SSH key \u5df2\u7ecf\u521b\u5efa\u6210\u529f&#xff0c;\u4f60\u53ea\u9700\u8981\u6dfb\u52a0\u5230github\u7684SSH key\u4e0a\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419125112-68039c4035a2e.png\" alt=\"\" \/><\/p>\n<h4>3\u3001\u83b7\u53d6ssh key\u516c\u94a5\u5185\u5bb9<\/h4>\n<p><span class=\"token comment\">\/\/ \u8fdb\u5165ssh\u76ee\u5f55<\/span><br \/>\n$ cd <span class=\"token operator\">~<\/span><span class=\"token operator\">\/<\/span><span class=\"token punctuation\">.<\/span>ssh<br \/>\n<span class=\"token comment\">\/\/ \u67e5\u770bssh \u516c\u94a5  \u8fdb\u884c\u590d\u5236<\/span><br \/>\n$ cat id_rsa<span class=\"token punctuation\">.<\/span>pub<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419125112-68039c40a34ac.png\" alt=\"image-20250218153348786\" \/><\/p>\n<h4>4\u3001GitHub\u8bbe\u7f6e\u4e2d\u6dfb\u52a0\u516c\u94a5<\/h4>\n<p>\u70b9\u51fbGitHub\u4e2d\u8bbe\u7f6e\u6807\u7b7e&#xff0c;\u7136\u540e\u70b9\u51fb SSH and GPG keys \u3001 New SSH key \u5c06\u590d\u5236\u597d\u7684\u94fe\u63a5\u7c98\u8d34\u8fdb\u53bb<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419125112-68039c40cdfc4.png\" alt=\"image-20250218153419367\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419125113-68039c413ac87.png\" alt=\"image-20250218153429149\" \/><\/p>\n<h4>5\u3001\u68c0\u67e5\u662f\u5426\u8bbe\u7f6e\u6210\u529f<\/h4>\n<p>\u8f93\u5165\u4ee5\u4e0b\u4ee3\u7801<\/p>\n<p>$ ssh -T git&#064;github.com<\/p>\n<p>\u5f53\u4f60\u8f93\u5165\u4ee5\u4e0a\u4ee3\u7801\u65f6&#xff0c;\u4f1a\u6709\u4e00\u6bb5\u8b66\u544a\u4ee3\u7801&#xff0c;\u5982&#xff1a;<\/p>\n<p>The authenticity of host &#039;github.com (207.97.227.239)&#039; can&#039;t be established.<br \/>\n# RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.<br \/>\n# Are you sure you want to continue connecting (yes\/no)?<\/p>\n<p>\u8fd9\u662f\u6b63\u5e38\u7684&#xff0c;\u4f60\u8f93\u5165 yes \u56de\u8f66\u65e2\u53ef\u3002\u5982\u679c\u4f60\u521b\u5efa SSH key \u7684\u65f6\u5019\u8bbe\u7f6e\u4e86\u5bc6\u7801&#xff0c;\u63a5\u4e0b\u6765\u5c31\u4f1a\u63d0\u793a\u4f60\u8f93\u5165\u5bc6\u7801&#xff0c;\u5982&#xff1a;<\/p>\n<p>Enter passphrase for key &#039;\/c\/Users\/Administrator\/.ssh\/id_rsa&#039;:<\/p>\n<p>\u5f53\u7136\u5982\u679c\u4f60\u5bc6\u7801\u8f93\u9519\u4e86&#xff0c;\u4f1a\u518d\u8981\u6c42\u4f60\u8f93\u5165&#xff0c;\u77e5\u9053\u5bf9\u4e86\u4e3a\u6b62\u3002<\/p>\n<p>\u6ce8\u610f&#xff1a;\u8f93\u5165\u5bc6\u7801\u65f6\u5982\u679c\u8f93\u9519\u4e00\u4e2a\u5b57\u5c31\u4f1a\u4e0d\u6b63\u786e&#xff0c;\u4f7f\u7528\u5220\u9664\u952e\u662f\u65e0\u6cd5\u66f4\u6b63\u7684\u3002<\/p>\n<p>\u5bc6\u7801\u6b63\u786e\u540e\u4f60\u4f1a\u770b\u5230\u4e0b\u9762\u8fd9\u6bb5\u8bdd&#xff0c;\u5982&#xff1a;<\/p>\n<p>Hi username! You&#039;ve successfully authenticated, but GitHub does not<br \/>\n# provide shell access.<\/p>\n<p>\u5982\u679c\u7528\u6237\u540d\u662f\u6b63\u786e\u7684,\u4f60\u5df2\u7ecf\u6210\u529f\u8bbe\u7f6eSSH\u5bc6\u94a5\u3002\u5982\u679c\u4f60\u770b\u5230 \u201caccess denied\u201d &#xff0c;\u8005\u8868\u793a\u62d2\u7edd\u8bbf\u95ee&#xff0c;\u90a3\u4e48\u4f60\u5c31\u9700\u8981\u4f7f\u7528 https \u53bb\u8bbf\u95ee&#xff0c;\u800c\u4e0d\u662f SSH \u3002<\/p>\n<h3>2.git\u64cd\u4f5c<\/h3>\n<p>cd \u5de5\u4f5c\u76ee\u5f55<\/p>\n<p>git clone git&#064;github.com:DarlingGYQ\/chatserver.git<\/p>\n<p>mv \u6240\u6709\u7684\u6587\u4ef6\u5230chatserver&#xff0c;\u5c31\u662f\u521a\u521aclone\u7684\u6587\u4ef6\u5939<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419125113-68039c419627e.png\" alt=\"image-20250218153752563\" \/><\/p>\n<p>git status<\/p>\n<p>git add .<\/p>\n<p>git commit -m &#034;\u63d0\u4ea4\u9879\u76ee\u6240\u9700\u4ee3\u7801&#034;<\/p>\n<p>git branch master<\/p>\n<p>git push origin master<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419125113-68039c41b964d.png\" alt=\"image-20250218153842115\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419125114-68039c424cb51.png\" alt=\"image-20250218153900496\" \/><\/p>\n<p>git add autobuild.sh<\/p>\n<p>git commit -m &#034;\u81ea\u52a8\u7f16\u8bd1\u811a\u672c&#034;<\/p>\n<p>git push origin master<\/p>\n<p>chmod &#043;x autobuild.sh<\/p>\n<p>\u6dfb\u52a0\u81ea\u52a8\u7f16\u8bd1\u811a\u672c<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb807\u6b21\uff0c\u70b9\u8d5e5\u6b21\uff0c\u6536\u85cf14\u6b21\u3002\u5982\u679c\u4f60\u770b\u5230 \u201caccess denied\u201d \uff0c\u8005\u8868\u793a\u62d2\u7edd\u8bbf\u95ee\uff0c\u90a3\u4e48\u4f60\u5c31\u9700\u8981\u4f7f\u7528 https \u53bb\u8bbf\u95ee\uff0c\u800c\u4e0d\u662f SSH\u3002\u8fd9\u4e24\u4e2a\u547d\u4ee4\u5c31\u662f\u68c0\u67e5\u662f\u5426\u5df2\u7ecf\u5b58\u5728 id_rsa.pub \u6216 id_dsa.pub \u6587\u4ef6\uff0c\u5982\u679c\u6587\u4ef6\u5df2\u7ecf\u5b58\u5728\uff0c\u90a3\u4e48\u4f60\u53ef\u4ee5\u8df3\u8fc7\u6b65\u9aa42\uff0c\u76f4\u63a5\u8fdb\u5165\u6b65\u9aa43\u3002\u5f53\u4f60\u770b\u5230\u4e0a\u9762\u8fd9\u6bb5\u4ee3\u7801\u7684\u6536\uff0c\u90a3\u5c31\u8bf4\u660e\uff0c\u4f60\u7684 SSH key \u5df2\u7ecf\u521b\u5efa\u6210\u529f\uff0c\u4f60\u53ea\u9700\u8981\u6dfb\u52a0\u5230github\u7684SSH key\u4e0a\u5c31\u53ef\u4ee5\u4e86\u3002\u63a5\u7740\u53c8\u4f1a\u63d0\u793a\u4f60\u8f93\u5165\u4e24\u6b21\u5bc6\u7801\uff08\u8be5\u5bc6\u7801\u662f\u4f60push\u6587\u4ef6\u7684\u65f6\u5019\u8981\u8f93\u5165\u7684\u5bc6\u7801\uff0c\u800c\u4e0d\u662fgithub\u7ba1\u7406\u8005\u7684\u5bc6\u7801\uff09\uff0c_\u96c6\u7fa4\u804a\u5929\u670d\u52a1\u5668github<\/p>\n","protected":false},"author":2,"featured_media":27671,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[2224,55,92,43,185],"topic":[],"class_list":["post-27678","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-c-c","tag-c","tag-github","tag-43","tag-185"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>C++\u9879\u76ee | \u96c6\u7fa4\u804a\u5929\u670d\u52a1\u5668 | \u9879\u76ee\u7ba1\u7406\u4ee5\u53cagithub\u6258\u7ba1 - \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\/27678.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"C++\u9879\u76ee | \u96c6\u7fa4\u804a\u5929\u670d\u52a1\u5668 | \u9879\u76ee\u7ba1\u7406\u4ee5\u53cagithub\u6258\u7ba1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb807\u6b21\uff0c\u70b9\u8d5e5\u6b21\uff0c\u6536\u85cf14\u6b21\u3002\u5982\u679c\u4f60\u770b\u5230 \u201caccess denied\u201d \uff0c\u8005\u8868\u793a\u62d2\u7edd\u8bbf\u95ee\uff0c\u90a3\u4e48\u4f60\u5c31\u9700\u8981\u4f7f\u7528 https \u53bb\u8bbf\u95ee\uff0c\u800c\u4e0d\u662f SSH\u3002\u8fd9\u4e24\u4e2a\u547d\u4ee4\u5c31\u662f\u68c0\u67e5\u662f\u5426\u5df2\u7ecf\u5b58\u5728 id_rsa.pub \u6216 id_dsa.pub \u6587\u4ef6\uff0c\u5982\u679c\u6587\u4ef6\u5df2\u7ecf\u5b58\u5728\uff0c\u90a3\u4e48\u4f60\u53ef\u4ee5\u8df3\u8fc7\u6b65\u9aa42\uff0c\u76f4\u63a5\u8fdb\u5165\u6b65\u9aa43\u3002\u5f53\u4f60\u770b\u5230\u4e0a\u9762\u8fd9\u6bb5\u4ee3\u7801\u7684\u6536\uff0c\u90a3\u5c31\u8bf4\u660e\uff0c\u4f60\u7684 SSH key \u5df2\u7ecf\u521b\u5efa\u6210\u529f\uff0c\u4f60\u53ea\u9700\u8981\u6dfb\u52a0\u5230github\u7684SSH key\u4e0a\u5c31\u53ef\u4ee5\u4e86\u3002\u63a5\u7740\u53c8\u4f1a\u63d0\u793a\u4f60\u8f93\u5165\u4e24\u6b21\u5bc6\u7801\uff08\u8be5\u5bc6\u7801\u662f\u4f60push\u6587\u4ef6\u7684\u65f6\u5019\u8981\u8f93\u5165\u7684\u5bc6\u7801\uff0c\u800c\u4e0d\u662fgithub\u7ba1\u7406\u8005\u7684\u5bc6\u7801\uff09\uff0c_\u96c6\u7fa4\u804a\u5929\u670d\u52a1\u5668github\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/27678.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-19T12:51:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419125112-68039c4035a2e.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=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/27678.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/27678.html\",\"name\":\"C++\u9879\u76ee | \u96c6\u7fa4\u804a\u5929\u670d\u52a1\u5668 | \u9879\u76ee\u7ba1\u7406\u4ee5\u53cagithub\u6258\u7ba1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-19T12:51:15+00:00\",\"dateModified\":\"2025-04-19T12:51:15+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/27678.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/27678.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/27678.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"C++\u9879\u76ee | \u96c6\u7fa4\u804a\u5929\u670d\u52a1\u5668 | \u9879\u76ee\u7ba1\u7406\u4ee5\u53cagithub\u6258\u7ba1\"}]},{\"@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":"C++\u9879\u76ee | \u96c6\u7fa4\u804a\u5929\u670d\u52a1\u5668 | \u9879\u76ee\u7ba1\u7406\u4ee5\u53cagithub\u6258\u7ba1 - \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\/27678.html","og_locale":"zh_CN","og_type":"article","og_title":"C++\u9879\u76ee | \u96c6\u7fa4\u804a\u5929\u670d\u52a1\u5668 | \u9879\u76ee\u7ba1\u7406\u4ee5\u53cagithub\u6258\u7ba1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb807\u6b21\uff0c\u70b9\u8d5e5\u6b21\uff0c\u6536\u85cf14\u6b21\u3002\u5982\u679c\u4f60\u770b\u5230 \u201caccess denied\u201d \uff0c\u8005\u8868\u793a\u62d2\u7edd\u8bbf\u95ee\uff0c\u90a3\u4e48\u4f60\u5c31\u9700\u8981\u4f7f\u7528 https \u53bb\u8bbf\u95ee\uff0c\u800c\u4e0d\u662f SSH\u3002\u8fd9\u4e24\u4e2a\u547d\u4ee4\u5c31\u662f\u68c0\u67e5\u662f\u5426\u5df2\u7ecf\u5b58\u5728 id_rsa.pub \u6216 id_dsa.pub \u6587\u4ef6\uff0c\u5982\u679c\u6587\u4ef6\u5df2\u7ecf\u5b58\u5728\uff0c\u90a3\u4e48\u4f60\u53ef\u4ee5\u8df3\u8fc7\u6b65\u9aa42\uff0c\u76f4\u63a5\u8fdb\u5165\u6b65\u9aa43\u3002\u5f53\u4f60\u770b\u5230\u4e0a\u9762\u8fd9\u6bb5\u4ee3\u7801\u7684\u6536\uff0c\u90a3\u5c31\u8bf4\u660e\uff0c\u4f60\u7684 SSH key \u5df2\u7ecf\u521b\u5efa\u6210\u529f\uff0c\u4f60\u53ea\u9700\u8981\u6dfb\u52a0\u5230github\u7684SSH key\u4e0a\u5c31\u53ef\u4ee5\u4e86\u3002\u63a5\u7740\u53c8\u4f1a\u63d0\u793a\u4f60\u8f93\u5165\u4e24\u6b21\u5bc6\u7801\uff08\u8be5\u5bc6\u7801\u662f\u4f60push\u6587\u4ef6\u7684\u65f6\u5019\u8981\u8f93\u5165\u7684\u5bc6\u7801\uff0c\u800c\u4e0d\u662fgithub\u7ba1\u7406\u8005\u7684\u5bc6\u7801\uff09\uff0c_\u96c6\u7fa4\u804a\u5929\u670d\u52a1\u5668github","og_url":"https:\/\/www.wsisp.com\/helps\/27678.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-19T12:51:15+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419125112-68039c4035a2e.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/27678.html","url":"https:\/\/www.wsisp.com\/helps\/27678.html","name":"C++\u9879\u76ee | \u96c6\u7fa4\u804a\u5929\u670d\u52a1\u5668 | \u9879\u76ee\u7ba1\u7406\u4ee5\u53cagithub\u6258\u7ba1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-19T12:51:15+00:00","dateModified":"2025-04-19T12:51:15+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/27678.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/27678.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/27678.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"C++\u9879\u76ee | \u96c6\u7fa4\u804a\u5929\u670d\u52a1\u5668 | \u9879\u76ee\u7ba1\u7406\u4ee5\u53cagithub\u6258\u7ba1"}]},{"@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\/27678","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=27678"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/27678\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/27671"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=27678"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=27678"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=27678"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=27678"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}