Site cover image

🌎 A Journey to Myself

To Me, Ten Years From Now ✨

Git SSH 사용

ssh 사용으로 인증 절차 건너뛰기

  • 터미널에서 깃 푸쉬 할 때 인증 절차를 건너뛰기 위해 ssh 연동을 추가

  1. SSH 키 생성
    1. ssh-keygen -t ed25519 -C "your-email@example.com"
    2. 이메일 주소 대신 유저명 입력 해도 됨
  2. SSH 키 복사
    1. cat ~/.ssh/id_ed25519.pub
    2. 출력 내용 전체 복사
  3. GitHub에 SSH 키 등록
    1. https://github.com/settings/keys
    2. "New SSH key" → 복사한 내용 붙여넣기
  4. remote URL을 SSH로 변
    1. git remote set-url origin git@github.com:johnmayerbass/notionBlog.git
  5. PUSH
    1. git push origin main