• Add menu for location: Primary Menu
Github

How to use two github account on the same computer?

Rajesh Kumar April 5, 2019 comments off

Step 1 – How to generate a ssh key pair?
$ ssh-keygen -t rsa -C “devops@RajeshKumar.xyz”

Step 2 – Upload 2 different public key in 2 github accounts.

Step 3 – Lets say, the github account name is myaccount1 or myaccount2 when pushing to GitHub, you will need to create aliases for git@github.com in ~/.ssh/config, such as:

Host github-myaccount1
    User git
    Hostname github.com
    PreferredAuthentications publickey
    IdentityFile ~/.ssh/id_dsa-myaccount.pub
Host github-myaccount2
    User git
    Hostname github.com
    PreferredAuthentications publickey
    IdentityFile ~/.ssh/id_dsa-myaccount2.pub

How to validate which user is set?
ssh -T git@github.com

account github Multiple publickey

Recent Posts

  • AWS Best Practices for DDoS Resiliency
  • Protected: Rajesh Kumar Supported Tools & Cost Table – 2021
  • How to setup Datadog APM for Java application running with Tomcat
  • How to enable Apache Tomcat monitoring in Datadog Agent?
  • How to install datadog agent in centos
  • How to enable Docker Container monitoring in Datadog Agent?
  • How to enable Live Process monitoring in Datadog Agent?
  • Datadog Agent Setup in Windows Step by Step Guide
  • Self-hosted Alternative for gist, apple notes, onenote, Google keep & evernote
  • List of Free and Open Source Maps and Global Positioning System (GPS)

Categories

Archives

DevOps | Agile & SRE

Address

Cospaze, BVR Lake Front Veerannapalya Main Road,Nagawara, Bangalore 560045

  • +91 700 483 5930
  • contact@devopsschool.com
  • www.devopsschool.com

Community

  • Google Groups 1
  • Google Groups 2
  • Linkedin Groups 1
  • Facebook Group 1
  • Facebook Group 2

Useful Reference

  • DevOps Community
  • https://www.devopsschool.com/blog/sitemap/
  • DevOps Trainer
  • DevOps Consulting
  • DevOps News & Events

Links

  • About Us
  • Support
  • Calender
  • Comparison
  • Agenda
© 2021 DevOpsSchool.com - Theme by DevOpsschool