2 cd ~/.ssh
3 ls -al
# SSH Keygen
5 ssh-keygen -t rsa -C "[email protected]" -f "id_rsa_gitId1"
6 ssh-keygen -t rsa -C "[email protected]" -f "id_rsa_gitId2"
16 cd ~/.ssh
17 eval "$(ssh-agent -s)" # activate ssh
18 ssh-add ~/.ssh/id_rsa_[gitId1]
19 ssh-add ~/.ssh/id_rsa_[gitId2]
22 code ~/.ssh/id_rsa_[gitId1].pub
23 code ~/.ssh/id_rsa_[gitId2].pub
code ~/.ssh/config
Host github.com
HostName github.com
User [gitId1]@gmail.com
IdentityFile ~/.ssh/id_rsa_[gitId1]
Host github.com
HostName github.com
User [gitId1]@gmail.com
IdentityFile ~/.ssh/id_rsa_[gitId2]
Host github.com
HostName github.com
User [gitId1]@gmail.com
IdentityFile ~/.ssh/id_rsa_[gitId1]
Host github.com.workplace
HostName github.com
User [gitId1]@gmail.com
IdentityFile ~/.ssh/id_rsa_[gitId2]
git@[Host]:DSDanielPark/deeptechlog.git
[email protected]:DSDanielPark/deeptechlog.git