$ ssh-keygen -t rsa -b 4096
Generating public/private rsa key pair.
Enter file in which to save the key (/home/user/.ssh/id_rsa): repo1_rsa
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in repo1_rsa.
Your public key has been saved in repo1_rsa.pub.
The key fingerprint is:
03:b5:da:08:3b:6f:9a:29:3f:f5:4c:ee:5d:14:cb:41 user@host
The key's randomart image is:
+–[ RSA 4096]—-+
some output
+—————–+
$ nano ~/.ssh/config
# Global SSH configurations here will be applied to all hosts
IdentityFile ~/.ssh/repo1_rsa
IdentityFile ~/.ssh/repo2_rsa
Host repo1.github.com
HostName github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/repo1_rsa
Host repo2.github.com
HostName github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/repo2_rsa
$ eval "$(ssh-agent -s)" && ssh-add ~/.ssh/repo1_rsa
$ eval "$(ssh-agent -s)" && ssh-add ~/.ssh/repo2_rsa
https://github.com/robbyrussell/oh-my-zsh/tree/master/plugins/ssh-agent
git clone [email protected]:repo1/project.git
git clone [email protected]:repo2/project.git