Page History
Code Block | ||
---|---|---|
| ||
C:Users\User\.ssh>
ssh-keygen -t rsa -C "psmon@live.co.kr" -f "id_rsa_psmon"
ssh-add id_rsa_psmon
# id_rsa_psmon.pub 키를 github 에 등록
# 복수개 설정
C:Users\User\.ssh\.config> 파일 설정
## 계정 A
Host psmon-github.com
HostName github.com
User git
IdentityFile C:\Users\User\.ssh\id_rsa_psmon
## 계정 B
Host some-github.com
HostName github.com
User git
IdentityFile C:\Users\User\.ssh\id_rsa_some
ssh -T psmon-github.com
ssh -T some-github.com
|
- psmon 을 자신의 id로 바꾸고 복수개 셋팅
git clone git@psmon-github.com:psmon/{youtRepo}.git