DEV Community

Mohan Sharma
Mohan Sharma

Posted on

1

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)

AWS Q Developer image

Your AI Code Assistant

Automate your code reviews. Catch bugs before your coworkers. Fix security issues in your code. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

👋 Kindness is contagious

If this article connected with you, consider tapping ❤️ or leaving a brief comment to share your thoughts!

Okay