๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

โœ”๏ธ Etc.

[GitHub] ๊นƒ ํ† ํฐ ์ธ์ฆํ•˜๊ธฐ - Github ๋น„๋ฐ€๋ฒˆํ˜ธ ์ž…๋ ฅ ์—†์ด pull/push ํ•˜๊ธฐ, Git requested URL returned Error 403 ํ•ด๊ฒฐ๋ฐฉ๋ฒ•, ์†Œ์ŠคํŠธ๋ฆฌ push ์˜ค๋ฅ˜ ํ•ด๊ฒฐ

์ด๋ฒˆ ์›์ธ์€ 21๋…„ 8์›” 13์ผ ์ดํ›„, 'ํŒจ์Šค์›Œ๋“œ ๊ธฐ๋ฐ˜ ์ธ์ฆ'์„ ์ง€์›ํ•˜์ง€ ์•Š๊ธฐ ๋•Œ๋ฌธ!

์ฆ‰, Git CLI๋‚˜ GitHub์— ์ ‘๊ทผํ•˜๋Š” ๊ธฐํƒ€ ์„œ๋น„์Šค ๋“ฑ์—์„œ ๋”๋Š” ํŒจ์Šค์›Œ๋“œ๋กœ ์ธ์ฆ์„ ์ง„ํ–‰ํ•  ์ˆ˜ ์—†๋‹ค๋Š” ๋œป์œผ๋กœ

ํŒจ์Šค์›Œ๋“œ๋ฅผ ํ†ตํ•œ ์ธ์ฆ์ด ๋งŒ๋ฃŒ๋˜๋ฉด Personal Access Token ๋˜๋Š” SSH Key๋ฅผ ํ†ตํ•ด์„œ ์ธ์ฆ์„ ์ง„ํ–‰ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

 

์—๋Ÿฌ ๋ฉ”์‹œ์ง€ : 

remote: Support for password authentication was removed on August 13, 2021. 
Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: unable to access 'https://github.com/sominparrrk/repoName.git/': The requested URL returned error: 403

 

 

 


โ–ถ Solution - ๊นƒ ํ† ํฐ ์ธ์ฆํ•˜๊ธฐ

1.  Github ๋กœ๊ทธ์ธ > ํ”„๋กœํ•„ > Settings

 

2.  ์ขŒ์ธก ๋ฉ”๋‰ด > Developer settings

 

3.  ์ขŒ์ธก ๋ฉ”๋‰ด > Personal access tokens > ์šฐ์ธก ์ƒ๋‹จ > Generate new token ํด๋ฆญ!

 

4.  Note, ๋งŒ๋ฃŒ๊ธฐํ•œ, ๊ถŒํ•œ ์„ค์ • ์„ธํŒ… ํ›„ Generate token ํด๋ฆญ!

 

์ƒ์„ฑ์ด ์ œ๋Œ€๋กœ ๋˜๋ฉด Github์—์„œ ๋ฉ”์ผ์ด ์˜ต๋‹ˆ๋‹ค.

 

6. ํ† ํฐ ๋ณต์‚ฌ

*์•„๋ž˜ ์ƒ์„ฑ๋œ ํ† ํฐ์„ ๋ณต์‚ฌํ•ด์ฃผ์„ธ์š”! ํ•œ๋ฒˆ ์ถœ๋ ฅ๋˜๊ณ  ๋‹ค์‹œ ์ถœ๋ ฅ๋˜์ง€ ์•Š์œผ๋ฏ€๋กœ ์ž˜ ๋ณด๊ด€ํ•ด๋‘์„ธ์š”!!!

 

7.  push ํ•˜๋ฉด์„œ password์— ํ† ํฐ ๊ฐ’์„ ๋„ฃ์–ด์ค๋‹ˆ๋‹ค!!

๊ทธ๋Ÿผ push๊ฐ€ ์ •์ƒ์ ์œผ๋กœ ์ˆ˜ํ–‰๋ฉ๋‹ˆ๋‹ค!!

 


ํ•˜์ง€๋งŒ ์†Œ์ŠคํŠธ๋ฆฌ์—์„œ๋Š” push๊ฐ€ ์•ˆ๋ฉ๋‹ˆ๋‹ค!!!!

์ถ”๊ฐ€์ ์œผ๋กœ ์†Œ์ŠคํŠธ๋ฆฌ์—์„œ ์„ค์ •์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค!!

 

โ–ถ Solution - ๊นƒ ํ† ํฐ ์ ์šฉํ•˜๊ธฐ - ์†Œ์Šค ํŠธ๋ฆฌ

1.  ์šฐ์ธก ์ƒ๋‹จ > ์„ค์ • >  ์›๊ฒฉ 

์ €์žฅํ•œ ์›๊ฒฉ ์ €์žฅ์†Œ ๊ฒฝ๋กœ๋ฅผ ๋”๋ธ”ํด๋ฆญ ํ˜น์€ 'ํŽธ์ง‘'์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

 

2. ๊ธฐ์กด URL ๊ฒฝ๋กœ๋ฅผ ํ† ํฐ ๊ฐ’์„ ๋„ฃ์–ด ์ˆ˜์ •

https://<ํ† ํฐ ๊ฐ’>@github.com/<์‚ฌ์šฉ์ž๋ช…>/<๋ ˆํฌ์ง€ํ„ฐ๋ฆฌ๋ช…>.git

 

์ด์ œ ์ •์ƒ์ ์œผ๋กœ ์†Œ์Šค ํŠธ๋ฆฌ์—์„œ๋„ ๋งค๋ฒˆ ๋น„๋ฐ€๋ฒˆํ˜ธ ์ธ์ฆ ์—†์ด push๊ฐ€ ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค!

 

push ์˜ค๋ฅ˜ ์›์ธ์ด ๋‹ค์–‘ํ•ด์„œ ์œ„ ๋ฐฉ๋ฒ•์œผ๋กœ ์•ˆ๋œ๋‹ค๋ฉด, ์•„๋ž˜๋ฅผ ์ฐธ๊ณ ํ•˜์„ธ์š”!

https://lxxyeon.tistory.com/39

 

[Github] Git requested URL returned Error 403 ํ•ด๊ฒฐ๋ฐฉ๋ฒ•

๋กœ์ปฌ์—์„œ ์ปค๋ฐ‹ํ•˜๊ณ  ์›๊ฒฉ์œผ๋กœ ํ‘ธ์‰ฌํ•˜๋ ค๋Š” ์›ฌ๊ฑธ..............!! Git requested URL returned Error 403 ๋ฐœ์ƒ.............!! ์ฐพ์•„๋ณด๋‹ˆ 403 ํ•ด๊ฒฐ๋ฐฉ๋ฒ•์ด ๋„ˆ๋ฌด ๋งŽ๋‹ค... ์ง•์ฏ”.... SSHํ‚ค ์ถ”๊ฐ€ํ•˜๋Š” ๋ฐฉ๋ฒ•, ์ž๊ฒฉ์ฆ๋ช… ๋ณ€๊ฒฝ..

lxxyeon.tistory.com

 

728x90
๋ฐ˜์‘ํ˜•