how to

multi-user

Sep 2, 2024
GitHub
1 Minutes
46 Words

This multi-user means mutli github users in one machine.

ssh-keygen another key with another password (can be empty).

name it id_rsa_julyfun

add it to your github account ssh key.

ref: https://stackoverflow.com/questions/4220416/can-i-specify-multiple-users-for-myself-in-gitconfig

in your ~/.ssh/config, add

1
Host github-julyfun
2
HostName github.com
3
User git
4
IdentityFile ~/.ssh/id_rsa_julyfun

test

ssh -T git@github-julyfun

Usage

1
git remote set-url origin git@github-julyfun:foo/bar.git
2
git clone git@github-julyfun:ArnaudRinquin/atom-zentabs.git
Article title:multi-user
Article author:Julyfun
Release time:Sep 2, 2024
Copyright 2025
Sitemap