>_ IzzyLab

Topic breakdown

SSH is deliberately paranoid about private key permissions: if the key file is readable by the group or other users, the client/agent refuses to use it — a safeguard against the key being stolen by other local users. Unix permissions are an owner/group/others triplet, and it's easiest to read and set them in octal: stat -c '%a' shows the number, chmod changes it. A private key needs read-write access for the owner only and nobody else; meanwhile the public key (.pub) can perfectly well be world-readable — they're different files with different requirements. And remember: the access mode (chmod) and the owner (chown) are two different things.

What's checked

  1. Key permissions are 600

What it looks like