Authenticate to multiple git based source accounts in single system

Mohan Sharma - Jun 3 - - Dev Community
  1. Generate SSH keys using the below two commands in gitbash terminal.

ssh-keygen -t ed25519 -C "[email protected]" -f ~/.ssh/P

ssh-keygen -t ed25519 -C "[email protected]" -f ~/.ssh/C

  1. Add public keys to respective accounts
  2. Configure multiple host in config file under ~/.ssh directory

config

. . . . . . . . . . . . .