Skip to content

Instantly share code, notes, and snippets.

@i-amolo
Forked from gilangvperdana/README.md
Created February 25, 2026 14:31
Show Gist options
  • Select an option

  • Save i-amolo/b405fdf773f34494aff976b51f48e71a to your computer and use it in GitHub Desktop.

Select an option

Save i-amolo/b405fdf773f34494aff976b51f48e71a to your computer and use it in GitHub Desktop.
Fix SSH Key are too open on Windows 11

Fix SSH Key are too open on Windows 11

If you want to login with your key, but you see an error permission windows 11 "SSH key are too open" do this :

  • Make sure you was regenerate your key from puttygen to OpenSSH Key format
  • Open your Windows PowerShell then :
$path = ".\path\to\your\key.pem"
icacls.exe $path /reset
icacls.exe $path /GRANT:R "$($env:USERNAME):(R)"
icacls.exe $path /inheritance:r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment