Host association compatibility with ".ssh/config"
CiottiGiorgio opened this issue · 3 comments
When using different ssh keys associated to different profiles, it's usually the norm that people configure their .ssh/config
file like so:
Host dev
HostName dev.example.com
User john
Port 2322
Making it such that if the repo is cloned using:
git clone dev:org/project.git
The dev hostname is not correctly resolved and has to be set manually.
This is not a big inconvenience but it would be nice if GitLink is able to parse the config file and understand the real platform that a particular ssh profile/key is being used for.
Reading the correct host from config might be some effort, but if we could at least just override the hostname per project that would be already great.
Right now it uses wrong hostname and there is nothing I can do about it, just have to replace it manually every time.
Edit: actually there is a workaround. I created another origin, called it "real" and told gitlink to use this origin, now it works.