Fix Bad Owner / Permissions for SSH Config in Windows 10

Error:

  • Bad Owner or Permissions on SSH Config

Resolution:

  • Folder should only be accessible to SYSTEM and your logged in user

Steps:

  • Navigate to %USERPROFILE% in Windows Explorer
  • Right-Click on .ssh folder and choose Properties
  • Click on Security tab. It should only show your account and SYSTEM under “Group or user names”. If not, here are the steps to take:
    • Click Advanced button
    • Click Disable inheritance button and Convert inherited permissions into explicit …
    • Select and Remove any Principal in the list EXCEPT FOR your account name and SYSTEM
    • Click OK and then OK on the Properties window
  • You might perform similar steps on the all of the files in %UserProfile%\.ssh folder
  • If you run OpenSSH SSH Server, you might need to restart it in the services.msc