์ƒ์„ธ ์ปจํ…์ธ 

๋ณธ๋ฌธ ์ œ๋ชฉ

[Github] HTTPS๋ฅผ ํ†ตํ•œ username/password ๋ฐฉ์‹ ์ธ์ฆ์„ ์ง€์›ํ•˜์ง€ ์•Š๋Š”๋‹ค

๐Ÿ˜Ž ์ง€์‹ in Action/Git, Jira ๐Ÿ› ๏ธ

by :ํ•ดํ”ผ๋ž˜๋น—๐Ÿพ 2025. 7. 19. 09:45

๋ณธ๋ฌธ

์—๋Ÿฌ ๋ฉ”์‹œ์ง€ : HTTPS๋ฅผ ํ†ตํ•œ username/password ๋ฐฉ์‹ ์ธ์ฆ ์ง€์› ์•ˆํ•จ 

Support for password authentication was removed on August 13, 2021. remote: Please see https://docs.github.com/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.

 

 

๋ฐฉ๋ฒ•1. Personal Access Token(PAT) ์‚ฌ์šฉ 

1. https://github.com/settings/tokens ๋กœ ์ด๋™

2. Generate new Token ํด๋ฆญ

3. Git on MacBook / ๋งŒ๋ฃŒ ๊ธฐ๊ฐ„ ์„ ํƒ / repo์ฒดํฌ (์ „์ฒด ์ €์žฅ์†Œ ์ ‘๊ทผ ์œ„ํ•ด)

4. ์ƒ์„ฑ ํ›„ ํ† ํฐ์„ ๋ณต์‚ฌ 

 

๋ฐฉ๋ฒ•2. SSHํ‚ค ์ธ์ฆ ์‚ฌ์šฉ

1. SSHํ‚ค ์ƒ์„ฑ(์ด๋ฏธ ์žˆ๋‹ค๋ฉด ์ƒ๋žต)

ssh-keygen -t ed25519 -C "email"

eval "$(ssh-agent -s)"

ssh-add ~/.ssh/id_ed25519

 

2. ๊ณต๊ฐœํ‚ค ๋ณต์‚ฌ 

 pbcopy < ~/.ssh/id_ed25519.pub

 

3. Github์— ๋“ฑ๋ก

https://github.com/settings/key์— ssh  key ๋“ฑ๋ก

 

4. origin์„ SSH URL๋กœ ๋ณ€๊ฒฝ

git remote set-url origin git@github.com:USERNAME/REPO.git 

 

5. ssh ์—ฐ๊ฒฐ ํ…Œ์ŠคํŠธ

ssh -T git@github.com

 

์—๋Ÿฌ ๋ฉ”์‹œ์ง€ : SSH connection Failed => ๋ฐฉํ™”๋ฒฝ์ด ssh 22๋ฒˆ ํฌํŠธ๋ฅผ ๋ง‰๊ณ  ์žˆ์Œ => 443 ํฌํŠธ ์‚ฌ์šฉ 

 

(1) SSH over HTTPSํฌํŠธ 443 ์‚ฌ์šฉ

ssh -T -p 443 git@ssh.github.com

 

(2) ๋ฆฌ๋ชจํŠธ ์ฃผ์†Œ ๋ฐ”๊พธ๊ธฐ

git remote set-url origin ssh://git@ssh.github.com:443/USERNAME/REPO.git

 

 

 

 

728x90

๊ด€๋ จ๊ธ€ ๋”๋ณด๊ธฐ