$200 PERK Deploy cloud databases, droplets & cron jobs with $200 in free 60-day credits on DigitalOcean.
Home / Linux Chmod Calculator / Chmod 600
HIGH PRIVACY Octal Mode: 600 • Symbolic: -rw-------

Chmod 600 Permissions

Chmod 600: Chmod 600 grants read and write permissions exclusively to the file owner (6), completely locking out group members and the public (00). Represented symbolically as -rw-------, it is the mandatory permission for SSH private keys, AWS EC2 credentials, database passwords, and .env files containing production secrets.

Octal Code
600
Symbolic Notation
-rw-------
Generated Bash Command
chmod 600 ~/.ssh/id_rsa
Class Read (4) Write (2) Execute (1) Sum
Owner (User) ✓ ✓ — 6
Group — — — 0
Others (Public) — — — 0
ADVERTISEMENT ClientDev Tools

Technical Deep-Dive: Chmod 600 (-rw-------)

Bitwise binary arithmetic, POSIX DAC rules, and security guidelines for production servers.

1. Binary Calculation Mechanics

POSIX file systems represent permissions in triplets of binary bits where Read is 4 (2^2), Write is 2 (2^1), and Execute is 1 (2^0). In chmod 600, each digit computes as:

  • • Owner: 6 (Read Write )
  • • Group: 0 ()
  • • Others: 0 ()

2. Practical CLI Execution

Apply this configuration to files or directories with the standard Linux terminal commands:

# Apply to specific target:
chmod 600 ~/.ssh/id_rsa
# Apply recursively to subdirectories:
chmod -R 600 ~/.ssh/id_rsa

Frequently Asked Questions

Why does SSH abort with 'Permissions 0644 for id_rsa are too open'?

OpenSSH clients refuse to use private keys that are readable by other users on the system to prevent credential theft. If your key has 644 or 755, the SSH daemon terminates the connection immediately. Resolve it by running: chmod 600 ~/.ssh/id_rsa.

chmod 600 vs 400 for SSH keys: Which is better?

Chmod 600 allows the owner to read and write (edit/update), while chmod 400 makes the key read-only for the owner. Both satisfy OpenSSH security checks. Chmod 400 is common for AWS EC2 .pem keys to prevent accidental overwriting.

What permissions should the parent ~/.ssh directory have?

The parent ~/.ssh directory must be set to chmod 700 (drwx------). If the directory itself is world-readable, SSH clients may still reject authentication.