What does chmod 600 mean? Private key permissions, SSH, and secure file practices

chmod 600 sets permissions to rw-------: only the owner can read and write the file. The group and everyone else get no access at all. This is the required permission for SSH private keys, and SSH will refuse to use a key file with broader permissions as a security measure.

Octal
600
chmod 600
Symbolic
rw-------
Owner / Group / Others
Category
Secure Permissions
Restricted access

Calculator

CHMOD Configurator

Calculate Linux file permissions using checkboxes, octal numbers, or symbolic notation.

Owner

Group

Public

-rwxr-xr-x

Command Line Example

chmod 755 filename
Or apply recursively to all files and directories inside a folder:
chmod -R 755 foldername/

How this is calculated

In octal, 6 = 4+2+0 (read+write) for the owner; the zeroes for group and others mean no permissions whatsoever. 600 is the standard for anything containing secrets: SSH keys, GPG private keys, database credential files, API token files. The principle is least privilege: if only one user needs access, only that user should have access. Many applications will warn or refuse to run if their config files are world-readable and contain passwords.

Verdict

600 is the correct permission for any file containing credentials, keys, or secrets. Make it a habit: whenever you create an SSH key, a .env file with passwords, or a database config, chmod 600 immediately.

Frequently asked questions

Why does SSH reject my key with 'permissions are too open'?
SSH requires private keys to be mode 600 (owner read+write only). If your key file is readable by group or others, SSH refuses to use it because anyone could have copied the key.