You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

github 의 계정이 N계일때 설정하는 방법입니다.


  • User(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.comgit@some-github.com  으로 사용
    • ex> git@psmon-github.com:psmon/NetCoreLabs.git
  • ssh-agent start  - 윈도우에서 ssh-add 안될때 agent 실행






  • No labels