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

  • Deploy yeoman angular-fullstack project to Azure
  • understanding commit and merge
  • Git: ability to stage patch
  • What happens if you run Git init/comit within a virtualenv?
  • In Git, how to squash all commits related to a file or folder?
  • How do you do the equivalent of a “git show tagname” with JGit?
  • Here my ssh config look like

            User git
            IdentityFile /root/.ssh/viren

    Can anyone help

  • Can't access AWS CodeCommit with SSH
  • New repo with copied history of only currently tracked files
  • Git - Link other repository to my repository
  • how to use git commit template in tower
  • why did “git clone” stop after unpacking object:100%, done
  • Git : How to remove only empty directories(not un-tracked files) in a git repo
  • 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.