Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support managing ssh key for different git accounts #9

Open
SpikeWong opened this issue Oct 16, 2022 · 2 comments
Open

Support managing ssh key for different git accounts #9

SpikeWong opened this issue Oct 16, 2022 · 2 comments

Comments

@SpikeWong
Copy link

as the title mentioned, it will be much more convenient if we can manage ssh key for different git accounts at the same time

@gauseen
Copy link
Owner

gauseen commented Oct 19, 2022

as the title mentioned, it will be much more convenient if we can manage ssh key for different git accounts at the same time

What scenarios will use multiple ssh

@SpikeWong
Copy link
Author

For example, GitHub will verify your identity with the ssh key when you push and pull via git cli. I understand that in order for multiple accounts to access github properly, not only do you have to configure your username and email, but more importantly, you also have to map to the corresponding ssh key after switching git users.
For example, I have two git accounts, one for each of my two GitHub users, and two local ssh keys for each of my two github users, and I've manually modified my ssh configs to ensure that different hosts are mapped to different ssh keys. For each repository I have to change the remote url to correspond to the host in the ssh configs.

similar to this: https://gist.github.com/aprilmintacpineda/f101bf5fd34f1e6664497cf4b9b9345f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants