github 의 계정이 N계일때 설정하는 방법입니다.
- psmon 주인장의 계정으로 자신 계정으로 이용할것~
# Key 생성 - id별로 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 # TEST ssh -T psmon-github.com ssh -T some-github.com
- git@github.com →
git@some-github.com 으로 사용
ex> git@psmon-github.com:psmon/NetCoreLabs.git
ssh-agent start - 윈도우에서 ssh-add 안될때 agent 실행