-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
GITGIT informationGIT information
Description
SSH ํค ์ฌ์ฉ
SSH ํค๋ฅผ ์ฌ์ฉํ๋ฉด GitHub๊ณผ์ ์ฐ๊ฒฐ์ด ๋ ์์ ํ๊ณ ์๋ํ๋ ์ธ์ฆ์ด ๊ฐ๋ฅํฉ๋๋ค.
SSH ํค ์์ฑ ๋ฐ ์ค์ ๋ฐฉ๋ฒ:
1.SSH ํค ์์ฑ (์ด ๋ช
๋ น์ด๋ฅผ ์คํํ ํ, ํค ํ์ผ์ ์ ์ฅํ ์์น์ ํจ์คํ๋ ์ด์ฆ๋ฅผ ์ค์ .)
ssh-keygen -t ed25519 -C "your_email@example.com"
2. SSH ์์ด์ ํธ ์์ ๋ฐ ํค ์ถ๊ฐ:
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
3. SSH ๊ณต๊ฐ ํค ๋ณต์ฌ:
cat ~/.ssh/id_ed25519.pub
4. GitHub์ SSH ํค ์ถ๊ฐ
โข GitHub ์น์ฌ์ดํธ์์ ๋ก๊ทธ์ธํ ํ, ์ค๋ฅธ์ชฝ ์๋จ์ ํ๋กํ ์ฌ์ง์ ํด๋ฆญํ๊ณ Settings๋ฅผ ์ ํ.
โข ์ผ์ชฝ ๋ฉ๋ด์์ SSH and GPG keys๋ฅผ ํด๋ฆญ.
โข New SSH key ๋ฒํผ์ ํด๋ฆญํ๊ณ , ์ ๋ชฉ๊ณผ ํค๋ฅผ ์
๋ ฅํ ํ Add SSH key๋ฅผ ํด๋ฆญ.
5. ์๊ฒฉ URL์ SSH๋ก ๋ณ๊ฒฝ
git remote set-url origin git@github.com:jms0522/Streaming-Data.git
โ ๋ฐฉ๋ฒ 2๊ฐ์ง
โข git config --global credential.helper store ๋ช
๋ น์ด๋ฅผ ์ฌ์ฉํ์ฌ ์๊ฒฉ ์ฆ๋ช
์ ์๊ตฌ์ ์ผ๋ก ์ ์ฅ.
โข ๋๋, SSH ํค๋ฅผ ์ค์ ํ์ฌ ๋น๋ฐ๋ฒํธ์ ํ ํฐ ์์ด ์๋์ผ๋ก ์ธ์ฆํ ์ ์๋๋ก ๊ตฌ์ฑ.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
GITGIT informationGIT information