openssh windows bad owner or permissions openssh windows bad owner or permissions windows windows

openssh windows bad owner or permissions


This started popping up immediately after I created another user with Administrator privileges, and that account began inheriting access to my .ssh folder.

You do not need to change your permissions whatsoever.

Just go to .ssh, right-click Properties, Security Tab, Advanced. DISABLE INHERITANCE, then click on the Administrator user (the one that is not you) and Remove them. Apply. Done.


Changing the ssh client from C:\Windows\System32\OpenSSH\ssh.exe to C:\Program Files\Git\usr\bin\ssh.exe worked for me.


Just got same issue after re-install windows. And easily fixed just by changing the file permissions to

.ssh-config file permissions

SYSTEM & Administrators - Full Control[your username] - Modify & as Owner

Note: