title: SSH Without Password: martin@XXX.XXX.XXX.XXX: Permission denied (publickey,gssapi-keyex,gssapi-with-mic)
body: <p>for the last hours, I tried setting up my old laptop ("Remote"), which is currently running Fedora31 to be a testdevice, that I can SSH into, WITHOUT PASSWORD. To achieve my goal, I followed several guides online.
  The laptop that I use productivly is running Ubuntu18.04LTS ("Host").</p>
  
  <p>The online-guides go as follows:</p>
  
  <ol>
  <li>Make sure OpenSSH-server is up and running on remote.</li>
  <li>SCP your public-key from your Host to the Remote</li>
  <li>Paste the Publickey on the Remote into the authorized_keys file <code>cat id_rsa.pub &gt;&gt; ~/.ssh/authorized_keys</code></li>
  </ol>
  
  <p>So far, so good. First, I removed the know_hosts file on Host. When I SSH from Host to Remote, i get prompted with the ECDSA Message, if I want to continue and add the IP to my "know_hosts" file. Also, I need to provide the password. Everything works so far. But I don't want to enter my password.
  Therefore, I edit the sshd-config on Remote <code>sudo vim /etc/ssh/sshd_config</code>. 
  I set <code>PasswordAuthentication no</code>, saved the file and restarted the ssh service with <code>sudo systemctl restart sshd</code>.</p>
  
  <p>If I try to login from Host to Remote, i get the errormessage from the question title
  <code>martin@XXX.XXX.XXX.XXX: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).</code></p>
  
  <hr>
  
  <p><strong>Already tried fixes:</strong></p>
  
  <p>On Remote:</p>
  
  <p>Setting the Read-rights as follows and restart the sshd service with <code>sudo systemctl restart sshd</code></p>
  
  <pre><code>chmod 700 .ssh
  chmod 600 .ssh/authorized_keys
  </code></pre>