git-link icon indicating copy to clipboard operation
git-link copied to clipboard

Ability to resolve using OpenSSH client configuration file

Open psibi opened this issue 1 year ago • 2 comments

So I have this setup where I use a different github account and a different private key configured like this in my ~/.ssh/config

Host github+myorg
  IdentitiesOnly yes
  HostName github.com
  IdentityFile ~/.ssh/myorg_id_rsa

This PR provides the ability to support such configuration. I have disabled it by default since this is not a common setup most peoples have.

psibi avatar Dec 08 '23 13:12 psibi

Hi, thanks for the PR!

To make sure I understand, your git remote uses github+myorg but you want that to link to github.com, is that correct?

sshaw avatar Dec 09 '23 20:12 sshaw

To make sure I understand, your git remote uses github+myorg but you want that to link to github.com, is that correct?

Yes. The remote for my repository looks like this:

git@github+myorg:MyOrganization/repo-name.git

psibi avatar Dec 10 '23 02:12 psibi

Release in v0.9.1

sshaw avatar Mar 03 '24 15:03 sshaw

Thank you!

psibi avatar Mar 03 '24 15:03 psibi