본문 바로가기
git 정리

[11] 유데미 git 강의 - Github 설정 : SSH 구성 _ git remote의 번거로움 해소

by 개도필 2022. 6. 18.

git remote할때마다 귀찮게 비밀번호 안치고 싶다면????????????????

빨로미 

 

Github설정 : SSH 구성

  • 깃 remote 할때마다 귀찮게 비밀번호를 안쳐도 된다.

https://docs.github.com/en/authentication/connecting-to-github-with-ssh

  1. 깃허브에 들어가서 로그인
    • 깃허브에 연결된 이메일 확인하기
    • → 깃허브가 우리가 누군지 알게 된다.
git config user.email

 

 2. ssh키 설정하기

  • ssh키중 하나를 생성한 다음, 깃허브에 알려주면 된다.
  • ssh키 설정돼있나 확인
ls -al ~/.ssh

설정 안된거임 ㅋ ..

 

  • 튜토리얼에 따라서 ssh키만들기

https://docs.github.com/en/authentication/connecting-to-github-with-ssh

→ 튜토리얼 보고 따라하기

  • 키 생성
ssh-keygen -t ed25519 -C "your_email@example.com"
  • ssh키 저장될 파일 이름 만들기 (나는 그냥 엔터침)
  • 비밀번호 치기 (2번)

키 생성됨

 3. SSH키를 SSH에이전트에 추가

 

 아래 방법을 따라하면 된다

 

 

 4, GitHub 계정에 새 SSH 키 추가

  • 아래 튜토리얼 따라하기

https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account

 

Adding a new SSH key to your GitHub account - GitHub Docs

Before adding a new SSH key to your account on GitHub.com, you should have: After adding a new SSH key to your account on GitHub.com, you can reconfigure any local repositories to use SSH. For more information, see "Switching remote URLs from HTTPS to SSH.

docs.github.com

 

 

여기 까지 완료하시면? git remote를 하실때 엄청 편해요~ 

댓글