Host aliases in ~/.git/config do not work
Attempting to pull a repository URL (e.g. git@gitlab-alias:group/project.git) that uses Host alias from ~/.ssh/config fails with the following error:
ssh: Could not resolve hostname gitlab-alias: no address associated with name
fatal: Could not read from repository.
Contents of ~/.ssh/config:
Host gitlab-alias
HostName gitlab.com
User git
IdentityFile /c/Users/me/.ssh/gitlab_id_rsa
I'm trying to use a separate pair of rsa keys which I specified in .ssh/config. git-plus does always take the default keys.
Is there a way to configure which keys to use?
This package doesn't touch or choose anything related to your ssh configurations. All the commands are executed in a spawned child processes so those configurations should translate.
I'm able to use host aliases in and everything still works. @gulench When you try to pull from the command line does it work?
@dampfhamm3r No there isn't a way because the package doesn't do anything with those settings.
@akonwi I have the same situation as @gulench, my config file is
Host github.com
IdentityFile /c/Users/aroc/.ssh/github
Making a pull or a push doesn't work, using Git Bash under windows works. (My ssh key has passphrase).