You can add so much in common: the private key you need, the idea is to register them in the% HOME% / file. ssh / config so that you can define remote access to ssh addresses, for example:
workgh:Work persgh:Personal
See " change github account mac command line " for an example ssh/config file.
In your case:
#Personal GitHub Host persgh HostName github.com User git IdentityFile ~/.ssh/id_rsa_perso
Reusing the same ssh key in another environment is blatantly deprecated. See this SO question for generating multiple ssh keys non-interactively.
source share