GitHub 로그인
목표 서버에서 gh 로 GitHub 에 인증해
popupstudio-ai org repo 에 접근한다.1. 터미널 열기
서버에 연결된 VS Code 창의 통합 터미널을 쓴다. 아래 명령은 모두 서버에서 실행된다.
2. 로그인
# 🖥️ 서버 터미널
gildong@ip-172-31-39-132:~$ gh auth login
선택: GitHub.com → HTTPS → git 자격증명 인증 Yes → Login with a web browser.
출력된 one-time code 를 https://github.com/login/device 에 입력해 승인한다.
- 팀 코드는 전부
popupstudio-aiorg 소속이다. 개인 repo push 금지. - push 는 SSH URL 을 쓴다:
git@github.com:popupstudio-ai/<repo>.git. - 서버 계정 홈에는 push 용
~/.ssh/id_ed25519가 이미 있다. 공개키(cat ~/.ssh/id_ed25519.pub)를 본인 GitHub 계정 SSH keys 에 등록하면 SSH push 가 인증된다.gh인증은 repo 조회·생성·CLI 용이다. - (선택) devtools 로 repo 삭제까지 하려면
delete_reposcope 를 추가:gh auth refresh -h github.com -s delete_repo.
3. 확인
# 🖥️ 서버 터미널
gildong@ip-172-31-39-132:~$ gh auth status
Logged in to github.com as ... 가 보이면 성공이다(최초 1회).
마무리
- 핵심 정리:
gh auth login으로 GitHub 인증 후gh auth status로 확인했다. 팀 repo 는popupstudio-aiorg. - 다음 시간: Claude Code 설치.