[๐ŸŽ ๊นƒํ—ˆ๋ธŒ] ์ธ์ฆ ์˜ค๋ฅ˜( GitHub does not provide shell access ) ํ•ด๊ฒฐ ํ•˜๊ธฐ

dsfasdยท2022๋…„ 9์›” 16์ผ
1

๊นƒํ—ˆ๋ธŒ ์ธ์ฆ ์˜ค๋ฅ˜( GitHub does not provide shell access ) ํ•ด๊ฒฐํ•˜๊ธฐ!


Please make sure you have the correct access rights and the repository exists.

ํ„ฐ๋ฏธ๋„์—์„œ ๊นƒ์„ push ํ•˜๋Š” ๊ณผ์ •์—์„œ ์œ„์™€ ๊ฐ™์ด ๊ถŒํ•œ์ด ์—†๋‹ค๊ณ  ๋œฌ๋‹ค.


ssh -T git@github.com

โœ… ์œ„ ๋ฌธ๊ตฌ๋ฅผ ๊ทธ๋Œ€๋กœ ๋ณต์‚ฌํ•ด์„œ ์ž…๋ ฅํ•˜๋ฉด sshํ‚ค๊ฐ€ ์ž˜ ์„ค์ •๋˜์–ด ์žˆ๋Š”์ง€ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋‹ค.

Hi <๋‚ด ์ด๋ฆ„>! You've successfully authenticated, but GitHub does not provide shell access.

๋‹ค์Œ๊ณผ ๊ฐ™์€ ๋ฌธ๊ตฌ๊ฐ€ ๋‚˜์˜จ๋‹ค๋ฉด ๊ถŒํ•œ์€ ๊นƒํ—ˆ๋ธŒ์— ์„ฑ๊ณต์ ์œผ๋กœ ๋“ฑ๋ก๋˜์—ˆ์ง€๋งŒ ssh ์ธ์ฆ์ด ๋“ฑ๋ก๋˜์ง€ ์•Š์€ ์ƒํƒœ์ด๋‹ค.


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

โœ… ์œ„ ๋ฌธ๊ตฌ๋ฅผ ์ž…๋ ฅํ•˜๋ฉด ๊นƒํ—ˆ๋ธŒ ์ฃผ์†Œ๋ฅผ ssh๋กœ ์„ค์ •ํ•ด์„œ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋‹ค.
์ด์ œ ๋‹ค์‹œ Push๋ฅผ ํ•ด๋ณด๋ฉด ์ œ๋Œ€๋กœ ๋™์ž‘ํ•˜๋Š” ๊ฒƒ์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋‹ค!


๐Ÿ“Œ SSH๋ž€?

SSH๋Š” Secure Shell๋กœ ๋ณด์•ˆ ์…ธ์ด๋ผ๋Š” ์˜๋ฏธ๋ฅผ ๋‹ด๊ณ  ์žˆ๋‹ค.
( shell : ๋ช…๋ น์–ด์™€ ํ”„๋กœ๊ทธ๋žจ์„ ์‚ฌ์šฉํ•  ๋•Œ ์“ฐ๋Š” ์ธํ„ฐํŽ˜์ด์Šค๋ฅผ ์˜๋ฏธ. )

์›๊ฒฉ ํ˜ธ์ŠคํŠธ ์ปดํ“จํ„ฐ์— ์ ‘์†ํ•˜๊ธฐ ์œ„ํ•ด ์‚ฌ์šฉํ•˜๋Š” ์ธํ„ฐ๋„ท ํ”„๋กœํ† ์ฝœ์œผ๋กœ
์‚ฌ์šฉ์ž ์ธ์ฆ๋ถ€ํ„ฐ ๋ฐ์ดํ„ฐ ์ „์†ก๊นŒ์ง€ ๋ชจ๋“  ๊ณผ์ •์ด ์•”ํ˜ธํ™”๋˜๊ธฐ ๋•Œ๋ฌธ์— ๋ณด์•ˆ์„ฑ์ด ๋งค์šฐ ๋†’๋‹ค.

๋Œ€์นญํ‚ค ์•”ํ˜ธํ™”, ๋น„๋Œ€์นญํ‚ค ์•”ํ˜ธํ™”, ํ•ด์‹œ ์‚ฌ์šฉ


๐Ÿ“Œ Git hub ์—์„œ์˜ ssh ๋™์ž‘ ์›๋ฆฌ

์ธ์ฆํ‚ค ์ƒ์„ฑ

ํ”„๋ผ์ด๋น— ํ‚ค๋Š” ๋‚˜์˜ ์ปดํ“จํ„ฐ์— ์ €์žฅํ•˜๊ณ  ํผ๋ธ”๋ฆญ ํ‚ค๋Š” ์›๊ฒฉ ๋ ˆํฌ์ง€ํ† ๋ฆฌ์ธ ๊นƒํ—ˆ๋ธŒ์— ํ‚ค๋ฅผ ์ €์žฅํ•œ๋‹ค.

์„œ๋ฒ„์— ๋“ฑ๋ก

๋กœ์ปฌ์—์„œ ssh key๋ฅผ ์ƒ์„ฑ ํ›„ ssh key๋ฅผ ์„œ๋ฒ„์— ๋“ฑ๋กํ•˜๋ฉด ํ•ด๋‹น ์„œ๋ฒ„์— ์ ‘์†ํ•˜๋ ค๋Š” ๊ณ„์ •์˜ ๋น„๋ฐ€๋ฒˆํ˜ธ ์ž…๋ ฅ์—†์ด ssh ์ ‘์†์ด ๊ฐ€๋Šฅํ•˜๋‹ค.

profile
๊ธฐ๋ก์„ ์ •๋ฆฌํ•˜๋Š” ๊ณต๊ฐ„!

0๊ฐœ์˜ ๋Œ“๊ธ€