인디노트
Github 연결시 특정 ssh 키를 사용하는 방법 본문
우선 본인의 ~/.ssh/config 에 다음과 같이 등록한다.
# user1
Host user1.github.com
HostName github.com
User git
IdentityFile ~/.ssh/user1/id_rsa
# user2
Host user2.github.com
HostName github.com
User git
IdentityFile ~/.ssh/user2/id_rsa
# user1 계정으로 사용하는 경우
git remote set-url origin git@user1.github.com:User1/UserRepo.git
git clone git@user1.github.com:User1/UserRepo.git
반응형
'정보' 카테고리의 다른 글
shimgvw.dll (0) | 2023.11.30 |
---|---|
VMWare 에 Shared Folder 마운트 하기 (0) | 2023.11.14 |
Flex 설명 쉽게 해놓은 곳 링크 (0) | 2023.07.01 |
우분투에서 있는 node 서버를 실행시키는 데몬 서비스 (0) | 2023.04.27 |
우분투에서 nameserver 설정 (0) | 2023.04.10 |
Comments