title: Multiple SSH Keys on the same device
body: <p>I registered a personal SSH key months ago and everything worked fine. Now I'm working for a company. They created their own GitHub account and I have started a new repository.</p>
  
  <p>I know I have to add another SSH key, which I did. </p>
  
  <p>This is the content of the ~/.ssh/config file.</p>
  
  <pre><code>Host github.com
      HostName github.com
      User git
      PreferredAuthentications publickey
      IdentityFile ~/.ssh/id_rsa
  
  Host github-companyname
      HostName github.com
      User git
      PreferredAuthentications publickey
      IdentityFile ~/.ssh/id_rsa_companyname
  </code></pre>
  
  <p>I also did <code>ssh &lt;keyname&gt;</code> and I am authenticated.</p>
  
  <p>After that I executed the following commands.</p>
  
  <pre><code>git init
  git add 
  git remote add origin &lt;repo&gt;
  </code></pre>
  
  <p>It works all fine, until I run <code>git push -u origin master</code>.</p>
  
  <p>I get this error.</p>
  
  <blockquote>
    <p>ERROR: Repository not found.<br>
    fatal: Could not read from remote repository.</p>
    
    <p>Please make sure you have the correct access rights and the repository exists.</p>
  </blockquote>
  
  <p>I don't understand. Everything seems to be set up correctly.</p>
  
  <p>Why am I getting that error message?</p>
  
  <p>If that makes any difference, I am using OSX Sierra 10.12.4.</p>