Asking git to look for different key other than id_rsa

I not sure why but even though I mention properly in ssh config to look for identity file with name for github

git still considering id_rsa as default and it does not seem to work unless an until i rename and viren to and id_rsa

  • So Visual Studio officially supports Git now. What does that mean?
  • Git “efrror: RPC failed; result=55, HTTP code = 0” on push
  • creating a public repo with submodules
  • Is it possible in git to create a new, empty remote branch without pushing?
  • How to get all GIT branches monitored by TFS CI?
  • Remove folder and its contents from git/GitHub's history
  • Here my ssh config look like

            User git
            IdentityFile /root/.ssh/viren

    Can anyone help

  • Disable -m in git
  • App on Github and heroku: Ignore file on one but not the other
  • npm install error though Python already included
  • how to delete files in the remote repository?
  • GUI for bare git repo
  • How can I see all the files that were modified/added/removed in the last push received?
  • One Solution collect form web for “Asking git to look for different key other than id_rsa”

    I believe the ssh config only applies if you use the alias defined in host clause to connect to the server.

    I.e. you should have in ssh config have:

    host github
        user git
        identityfile /root/.ssh/viren

    The host directive has to be followed with something you will actually use to connect, so [Amazon server] is not appropriate. And you have to tell git to connect to:


    (and not

    Git Baby is a git and github fan, let's start git clone.