gum icon indicating copy to clipboard operation
gum copied to clipboard

Support managing ssh key for different git accounts

Open SpikeWong opened this issue 2 years ago • 2 comments

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

SpikeWong avatar Oct 16 '22 06:10 SpikeWong

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

gauseen avatar Oct 19 '22 12:10 gauseen

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

SpikeWong avatar Nov 14 '22 05:11 SpikeWong