title: Centos SSH access denied
body: <p>I'm pulling my hair out over this and can't find a solution anywhere.</p>
  
  <p>After a reboot I started getting "Connection refused" through port 22000 which was the one I had configured and SSH was still listening to(I double checked). I'm connecting from a PC on the same LAN.</p>
  
  <p>I could connect to port 22 suddenly after that but there I got "Access denied" after entering my password. After troubleshooting this I got tired and reinstalled openssh, with that I got a clean config and everything including the firewall and selinux is now configured to use port 22 with these commands:</p>
  
  <pre><code>sudo semanage port -a -t ssh_port_t -p tcp 22
  sudo firewall-cmd --permanent --zone=public --add-port=22/tcp
  sudo firewall-cmd --reload
  </code></pre>
  
  <p>Still access denied even though it's the correct password, I know since I can use the exact same directly on the server.</p>
  
  <p>I have tried:</p>
  
  <ul>
  <li><p>Putting "PermitRootLogin yes" in the sshd_config and login with root but that is also denied, same with a new test account I made. I removed "AllowUsers [username]" from the config before this.</p></li>
  <li><p>Restarted the SSH service and rebooted as well several times.</p></li>
  <li><p>The solution here to no avail: <a href="https://stackoverflow.com/questions/26649712/centos-7-remote-ssh-access-denied">Centos 7 Remote SSH access denied</a></p></li>
  <li><p>Setting selinux to "Permissive"</p></li>
  <li>Disabling the firewall</li>
  <li>Changing password to one without special characters</li>
  <li>Triple checking that the SSH service is running</li>
  </ul>
  
  <p>Neither "/var/log/secure" nor "/var/log/messages" log anything regarding my attempts to login.</p>
  
  <p>I must have missed something, anyone have any ideas what?</p>