Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

multiple ssh key

Next, create/edit the .ssh/config file. 

=====================================================

# Default GitHub
Host github.com
  HostName github.com
  User git
  IdentityFile ~/.ssh/id_rsa

Host github-public
  HostName github.com
  User git
  IdentityFile ~/.ssh/id_rsa_public

Host github-personal
  HostName github.com
  User git
  IdentityFile ~/.ssh/id_rsa_personal
  
=====================================================

Next, you will need to alter your .git/config remote url to point to:

git@github-personal:<gh_username>/<gh_reponame>.git

Rather than the usual:

git@github.com:<gh_username>/<gh_reponame>.git
Comment

PREVIOUS NEXT
Code Example
Shell :: powershell new item 
Shell :: move all files from one directory to another 
Shell :: user no login centos 
Shell :: gulp-gzip 
Shell :: ssh login 
Shell :: gunicorn port 8080 
Shell :: add user sudoers arch 
Shell :: putty for ubuntu 
Shell :: install prisma nextjs 
Shell :: git clone single branch 
Shell :: show list of branches git 
Shell :: list all files in a directory linux 
Shell :: remove directory and contents linux 
Shell :: mac terminal curl 
Shell :: remove .env file from git history 
Shell :: copy one file content to another in linux 
Shell :: install astropy anaconda 
Shell :: change name of branch github 
Shell :: get my ip address linux 
Shell :: git reset to a specific commit 
Shell :: bash two for loops 
Shell :: composer install on mac 
Shell :: install bootstrap vue 
Shell :: git config command 
Shell :: git add and commit all in just one line 
Shell :: uninstall vmware player 
Shell :: sed from start to match 
Shell :: how to setup .env file for docker 
Shell :: find string in directory files 
Shell :: github ignore files 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =