GitHub SSH Config: "Bad configuration option: IdentifyFile"

GithubSshConfig

Github Problem Overview


I'm trying to create a .ssh/config file for multiple SSH accounts (specifically for github.com). I've tried several tutorials and github help walk-throughs but nothing seems to work.

I created a id_rsa_test and id_rsa_test.pub. I uploaded id_rsa_test.pub to github.

I then created a ~/.ssh/config file with the following:

# github account
Host github.com-test github.com
	Hostname github.com
	User git 
	IdentifyFile ~/.ssh/id_rsa_test

and

# github account
Host github.com-test github.com
	Hostname github.com
	User git 
	IdentifyFile ~/.ssh/id_rsa_test.pub

I then try several commands. i.e.:

git clone git@github-test:username/my_project.git

git push

...everytime I get the following error:

/home/username/.ssh/config: line 5: Bad configuration option: IdentifyFile
/home/username/.ssh/config: terminating, 1 bad configuration options
fatal: The remote end hung up unexpectedly

Any suggestions?

Github Solutions


Solution 1 - Github

It is IdentityFile with a 't', not IdentifyFile.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionRicoView Question on Stackoverflow
Solution 1 - GithubtomView Answer on Stackoverflow