A practical example
An SSH private key in the owner's home directory
SSH clients expect a private key to be protected from other local users. Setting the file to 600 lets its owner use and update the key while removing group and public access. Ownership still matters: the correct login account must own the file.
Before saving the change
- Confirm the path points to the private key, not the matching .pub public key.
- Use ls -l to verify that the account running SSH owns the file.
- Protect the parent .ssh directory as well, commonly with mode 700.