{"id":182,"date":"2026-08-02T00:42:02","date_gmt":"2026-08-01T16:42:02","guid":{"rendered":"https:\/\/xieg.top\/?p=182"},"modified":"2026-08-02T00:43:37","modified_gmt":"2026-08-01T16:43:37","slug":"%e6%8e%a8%e9%80%81git%e6%97%b6%e8%bf%94%e5%9b%9e%e6%8a%a5%e9%94%99-password-authentication-is-not-supported-for-git-operations","status":"publish","type":"post","link":"https:\/\/xieg.top\/index.php\/2026\/08\/02\/%e6%8e%a8%e9%80%81git%e6%97%b6%e8%bf%94%e5%9b%9e%e6%8a%a5%e9%94%99-password-authentication-is-not-supported-for-git-operations\/","title":{"rendered":"\u63a8\u9001Git\u65f6\u8fd4\u56de\u62a5\u9519: Password authentication is not supported for Git operations."},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>GitHub\u5df2\u7ecf\u4e0d\u652f\u6301\u4f7f\u7528\u8d26\u53f7\u5bc6\u7801\u8fdb\u884c Git \u64cd\u4f5c\u8ba4\u8bc1<\/strong> <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f53\u524d\u4f7f\u7528 HTTPS \u63a8\u9001\u65f6, Git\u8fd8\u5728\u5c1d\u8bd5\u4f7f\u7528username + password, \u9700\u8981\u6539\u4e3ausername + Personal Access Token (PAT)<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"725\" height=\"121\" src=\"https:\/\/xieg.top\/wp-content\/uploads\/2026\/08\/image.png\" alt=\"\" class=\"wp-image-183\" srcset=\"https:\/\/xieg.top\/wp-content\/uploads\/2026\/08\/image.png 725w, https:\/\/xieg.top\/wp-content\/uploads\/2026\/08\/image-300x50.png 300w\" sizes=\"auto, (max-width: 725px) 100vw, 725px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u89e3\u51b3\u65b9\u6848-\u4f7f\u7528SSH <\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u9996\u5148\u67e5\u770b\u662f\u5426\u5df2\u6709SSH, \u5728git bash\u4e2d\u6267\u884cls ~\/.ssh, \u5982\u679c\u8fd4\u56de<br>id_rsa<br>id_rsa.pub<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5219\u5df2\u6709SSH <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u8fd4\u56de\u7ed3\u679c\u5982\u4e0b, \u5219\u6ca1\u6709SSH <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"73\" src=\"https:\/\/xieg.top\/wp-content\/uploads\/2026\/08\/image-1.png\" alt=\"\" class=\"wp-image-184\" srcset=\"https:\/\/xieg.top\/wp-content\/uploads\/2026\/08\/image-1.png 640w, https:\/\/xieg.top\/wp-content\/uploads\/2026\/08\/image-1-300x34.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f7f\u7528\u8fd9\u4e00\u884c\u547d\u4ee4\u6765\u521b\u5efaSSH <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ssh-keygen -t ed25519 -C &#8220;\u4f60\u7684GitHub\u90ae\u7bb1&#8221; <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u8def\u56de\u8f66\u5373\u53ef <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u67e5\u770bgit bash\u4e2d\u7684\u8def\u5f84, \u53ef\u4ee5\u770b\u5230\u6587\u4ef6id_ed25519.pub<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"664\" height=\"194\" src=\"https:\/\/xieg.top\/wp-content\/uploads\/2026\/08\/image-2.png\" alt=\"\" class=\"wp-image-185\" srcset=\"https:\/\/xieg.top\/wp-content\/uploads\/2026\/08\/image-2.png 664w, https:\/\/xieg.top\/wp-content\/uploads\/2026\/08\/image-2-300x88.png 300w\" sizes=\"auto, (max-width: 664px) 100vw, 664px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u53f3\u952e\u4f7f\u7528\u8bb0\u4e8b\u672c\u6253\u5f00\u5e76\u590d\u5236<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fdb\u5165GitHub SSH Keys <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/settings\/keys?utm_source=chatgpt.com\">https:\/\/github.com\/settings\/keys?utm_source=chatgpt.com<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u70b9\u51fbNew SSH key <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"532\" src=\"https:\/\/xieg.top\/wp-content\/uploads\/2026\/08\/image-3-1024x532.png\" alt=\"\" class=\"wp-image-186\" srcset=\"https:\/\/xieg.top\/wp-content\/uploads\/2026\/08\/image-3-1024x532.png 1024w, https:\/\/xieg.top\/wp-content\/uploads\/2026\/08\/image-3-300x156.png 300w, https:\/\/xieg.top\/wp-content\/uploads\/2026\/08\/image-3-768x399.png 768w, https:\/\/xieg.top\/wp-content\/uploads\/2026\/08\/image-3.png 1406w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u7c98\u8d34\u521a\u521a\u590d\u5236\u7684key <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u56de\u5230git bash <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">git remote -v <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u770b\u5230\u7684\u662f <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"513\" height=\"100\" src=\"https:\/\/xieg.top\/wp-content\/uploads\/2026\/08\/image-4.png\" alt=\"\" class=\"wp-image-187\" srcset=\"https:\/\/xieg.top\/wp-content\/uploads\/2026\/08\/image-4.png 513w, https:\/\/xieg.top\/wp-content\/uploads\/2026\/08\/image-4-300x58.png 300w\" sizes=\"auto, (max-width: 513px) 100vw, 513px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u6539\u6210SSH <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">git remote set-url origin git@github.com:chenphxx\/Projtct1.git<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u770b\u5230\u5982\u4e0b\u7684\u7ed3\u679c, \u5219\u6210\u529f <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"736\" height=\"95\" src=\"https:\/\/xieg.top\/wp-content\/uploads\/2026\/08\/image-5.png\" alt=\"\" class=\"wp-image-188\" srcset=\"https:\/\/xieg.top\/wp-content\/uploads\/2026\/08\/image-5.png 736w, https:\/\/xieg.top\/wp-content\/uploads\/2026\/08\/image-5-300x39.png 300w\" sizes=\"auto, (max-width: 736px) 100vw, 736px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u6700\u540egit push origin main\u5373\u53ef<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>GitHub\u5df2\u7ecf\u4e0d\u652f\u6301\u4f7f\u7528\u8d26\u53f7\u5bc6\u7801\u8fdb\u884c Git \u64cd\u4f5c\u8ba4\u8bc1 \u5f53\u524d\u4f7f\u7528 HTTPS \u63a8\u9001\u65f6, Git\u8fd8\u5728\u5c1d\u8bd5\u4f7f\u7528u [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-182","post","type-post","status-publish","format-standard","hentry","category-git"],"_links":{"self":[{"href":"https:\/\/xieg.top\/index.php\/wp-json\/wp\/v2\/posts\/182","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xieg.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xieg.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xieg.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xieg.top\/index.php\/wp-json\/wp\/v2\/comments?post=182"}],"version-history":[{"count":2,"href":"https:\/\/xieg.top\/index.php\/wp-json\/wp\/v2\/posts\/182\/revisions"}],"predecessor-version":[{"id":190,"href":"https:\/\/xieg.top\/index.php\/wp-json\/wp\/v2\/posts\/182\/revisions\/190"}],"wp:attachment":[{"href":"https:\/\/xieg.top\/index.php\/wp-json\/wp\/v2\/media?parent=182"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xieg.top\/index.php\/wp-json\/wp\/v2\/categories?post=182"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xieg.top\/index.php\/wp-json\/wp\/v2\/tags?post=182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}