Best practice for using ssh key pairs with different groups?

I work with a company outside my school and I need my ssh public key.

I already have ssh public key for use with github. I installed this some time ago, and if I open the id_rsa.pub file, I can see that it has my email address in schools built in.

Now I wonder if it is typical to reuse this key with each company you work with, or you create a new one for each company. I think I have a few considerations:

  • If I use the same public key for each company, and my private key has been cracked, I need to provide each company with a new public key.
  • In my current public key, my school email address appears. I'm not sure why this is actually the case, but I don't think your email has anything to do with the key (or does it?).
  • If I created a different key pair for each company I work with, I'm not sure how I would practically switch between them when working with different companies (say, through github).

My understanding here is a little weak, any clarifications will be really useful.

thank

+4
source share
1 answer

Your question is asked (and answered well!) At security.stackexchange.com: https://security.stackexchange.com/questions/10203/reusing-private-public-keys

, , , ; , . , .

, , . , , .

, ~/.ssh/config. .

+2

Source: https://habr.com/ru/post/1547078/


All Articles