title: Adding ssh public key to root user on server
body: <p>I have been getting an error when trying to push to my remote Git repository and I think its because my root user on my server doesn't recognize me when I try to push to the remote repo. I am trying to add my ssh public to the root user on my server so I am able to push to a remote Git repository on the server. I have tried logging in as root and going to </p>
  
  <pre><code>/root/.ssh 
  </code></pre>
  
  <p>and trying to add my public key from my local machine to the </p>
  
  <pre><code>known_hosts
  </code></pre>
  
  <p>file. I have noticed that the format is completely different in the</p>
  
  <pre><code>known_hosts
  </code></pre>
  
  <p>file compared to my ssh public key, is there a special way to add a public key to the known hosts file? Also I do not have an</p>
  
  <pre><code>authorized_keys
  </code></pre>
  
  <p>file in the </p>
  
  <pre><code>.ssh 
  </code></pre>
  
  <p>directory.</p>
  
  <p>Any help would be greatly appreciated!</p>