title: Git: how to set not standard private SSH key path for a given repository
body: <p>I have a problem pushing to my Gitlab account via SSH, since I moved the key pair in the different folder.</p>
  <p>Consequently after pushing in the remote I got an &quot;access denied&quot; error, which I assume is connected to the fact that ssh tries to use standard id_rsa in .ssh folder.</p>
  <p><a href="https://stackoverflow.com/questions/41714882/git-how-to-clone-with-ssh-key-username">Here</a>, I found a way to clone repo using non-standard path to the private SSH key. Now I want to make it default for a given repo using (from <a href="https://git-scm.com/docs/git-config#Documentation/git-config.txt-coresshCommand" rel="nofollow noreferrer">Git-scm</a>):</p>
  <pre><code>git config core.sshCommand='ssh -i path/to/the/key/privatkeyfilename'
  </code></pre>
  <p>I get and error:</p>
  <pre><code>invalid key: core.sshCommand=ssh -i path/to/the/key/privatkeyfilename
  </code></pre>
  <p>Am I doing something wrong? How to achieve this?</p>