- Lock down your SSH folder and key
chmod 700 ~/.ssh chmod 600 ~/.ssh/id_ed25519 chmod 644 ~/.ssh/id_ed25519.pub
Check it worked
- Check the permissions
ls -l ~/.sshThe key should show -rw-------.
- Lock down your SSH folder and key
chmod 700 ~/.ssh chmod 600 ~/.ssh/id_ed25519 chmod 644 ~/.ssh/id_ed25519.pub
Check it worked
- Check the permissions
ls -l ~/.sshThe key should show -rw-------.
- Make the key readable by you only
icacls "$env:USERPROFILE\.ssh\id_ed25519" /inheritance:r /grant:r "$($env:USERNAME):(R)"
Check it worked
- Check the permissions
icacls "$env:USERPROFILE\.ssh\id_ed25519"Only your user should be listed.