Skip to content

Instantly share code, notes, and snippets.

@adrian-taralunga
adrian-taralunga / Multiple SSH Keys for Different GitHub Accounts.md
Last active March 27, 2025 11:50
Multiple SSH Keys settings for different github account

Managing Multiple SSH Keys for Different GitHub Accounts

This gist outlines how to configure multiple SSH keys for different GitHub accounts on a single machine.

1. Generate SSH Keys

Generate two SSH key pairs, one for each GitHub account, ensuring you specify a unique file path for each.  Replace the example emails with your actual emails.

$ ssh-keygen -t rsa -f ~/.ssh/id_rsa_work -C "[email protected]" 
#!/bin/bash
#install node.js (for Nelson)
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get -y install -y nodejs
#install IRI
#pre-check Java agreements
echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections
echo debconf shared/accepted-oracle-license-v1-1 seen true | sudo debconf-set-selections