DEV Community

Mohan Sharma
Mohan Sharma

Posted on

Authenticate to multiple git based source accounts in single system

  1. Generate SSH keys using the below two commands in gitbash terminal.

ssh-keygen -t ed25519 -C "abc@gmail.com" -f ~/.ssh/P

ssh-keygen -t ed25519 -C "xyz@c.com" -f ~/.ssh/C

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

config

Top comments (0)