title: openssh windows bad owner or permissions
body: <p>I've installed openssh for windows and when I run <code>ssh localhost</code> I get </p>
  
  <blockquote>
    <p>Bad owner or permissions on C:\Users\gary/.ssh/config</p>
  </blockquote>
  
  <p>I've looked at these 2 questions <a href="https://superuser.com/questions/348694/bad-owner-or-permissions-error-using-cygwins-ssh-exe">https://superuser.com/questions/348694/bad-owner-or-permissions-error-using-cygwins-ssh-exe</a> and <a href="https://serverfault.com/questions/253313/ssh-returns-bad-owner-or-permissions-on-ssh-config">https://serverfault.com/questions/253313/ssh-returns-bad-owner-or-permissions-on-ssh-config</a> but none of the answers work for me.  sshd is running as a service as the Local System user.  I've run <code>chmod 0600 C:\Users\gary\.ssh\config</code> and <code>chown gary C:\Users\gary\.ssh\config</code>.  I've also cleared the ACL by running <code>setfacl -b C:\Users\gary\.ssh\config</code> and then <code>chmod 0600 C:\Users\gary\.ssh\config</code> again.  I've also tried changing the owner to SYSTEM and got the same error.</p>
  
  <p>I'm not sure what else to do, is there anything wrong with my setup?  I also have git installed which installed mingw, I deleted ssh and sshd from my git installation so they wouldn't be on my path.</p>
  
  <p>Other commands I've run are
  <code>icacls "C:\Users\gary\.ssh\config" /setowner gary</code>
  <code>chown -R gary:1049089 C:\Users\gary\.ssh</code></p>
  
  <p><code>ls -la C:\Users\gary\.ssh\config</code> shows </p>
  
  <blockquote>
    <p>-rw-r--r-- 1 gary 1049089 229 Jan  3 14:43 'C:\Users\gary.ssh\config'</p>
  </blockquote>
  
  <p>it keeps showing this even after changing the owner to SYSTEM, but in the file properties in file explorer it shows SYSTEM as the owner</p>